I'm trying to set up my server to accept remote connections to MySQL. It now works using this command within ssh : mysql -u testuser -h my.ip.address.here -p
but when i try to do a mysqli connect using php, I get an error message:
Can't connect to MySQL server on my.ip.address.here
If I use mysql connect, I get Lost connection to MySQL server during query
If I telnet to my ip address on port 3306, I get the following:
Got packets out of order, connection to host lost
I thought this would be straight forward and it easy to get it connecting through ssh. I can connect fine using HeidiSql program also. I have Plesk installed on the IP address so maybe this is interfering but I wouldn't imagine so.
Anyone got any ideas as to what could be wrong?