I would recommend using another mysql host.
I use vb.net (for personal projects) which connect to mysql server's including, localhost.
Maybe use localhost to test it all (if you haven't already) then once its all connected properly, find a mysql host.
Here is what I use for vb.net (if its any benefit to you)
Code:
Imports Mysql.Data.MySqlClient
Public Class LoginRegister
Private connect As New MySqlConnection("datasource=localhost;port=3306;username=root;password=;database=reporting")
ReadOnly Property getConnection() As MySqlConnection
Get
Return connect
End Get
End Property
Sub openConnection()
If connect.State = ConnectionState.Closed Then
connect.Open()
End If
End Sub
Sub closeConnection()
If connect.State = ConnectionState.Open Then
connect.Close()
End If
End Sub
End Class
Then when I click "Login" this is the code for that also,
Code:
If CheckBox1.Checked = True Then
My.Settings.username = TextBoxUsername.Text
My.Settings.RememberMe = True
My.Settings.Save()
My.Settings.Reload()
Else
My.Settings.username = ""
My.Settings.RememberMe = False
My.Settings.Save()
My.Settings.Reload()
End If
Dim connection As New LoginRegister
Dim adapter As New MySqlDataAdapter
Dim t As New DataTable
Dim command As New MySqlCommand("SELECT `username`, `pincode` FROM `users` WHERE `username` = @username AND `pincode`=@pass", connection.getConnection())
command.Parameters.Add( @username", MySqlDbType.VarChar).Value = TextBoxUsername.Text
command.Parameters.Add("@pass", MySqlDbType.VarChar).Value = TextBoxPin.Text
If TextBoxUsername.Text.Trim() = "" Or TextBoxPin.Text.Trim().ToLower() = "username" Then
MsgBox("Please enter a username to continue...", MsgBoxStyle.Exclamation, "Enter username")
ElseIf TextBoxPin.Text.Trim() = "" Or TextBoxPin.Text.Trim().ToLower() = "pincode" Then
MsgBox("Please enter a pincode to continue...", MsgBoxStyle.Exclamation, "Enter pincode")
Else
adapter.SelectCommand = command
adapter.Fill(t)
If t.Rows.Count > 0 Then
Me.Hide()
Dim main As New frmMain
main.Show()
Else
MsgBox("We couldn't locate an account with that username and/or password. Try again", MsgBoxStyle.Critical, "No Account Found")
End If
End If
Hope this helps.