Genesis said:Looks like the db host value can be: localhost:3306
If 3306 doesn't work try 3307 - check this discussion:
https://stackoverflow.com/questions...nect-to-mysql-at-localhost3306-with-user-root
You can also check the php docs for guidance:
http://php.net/manual/en/function.mysql-connect.php
Also check out mysql docs:
https://dev.mysql.com/doc/refman/5.7/en/adding-users.html
Why not try the following.CHT said:1. I'm trying to use a test environment PHP page, which is externally hosted, with a created database from the hosting here.
2. Since it's PHP, I used the normal stuff I would have as if it's localhost, except replacing the host value which has proven to be unsuccessful so far.
3. Didn't really log down the error, so can't really show it. Sorry about this.
That should be an answer in itself then. @un4 doesn't allow it.riddict said:I myself have successfully connected to my remote sql using navicat but unable to connect using php in a remote server.
Genesis said:That should be an answer in itself then. @@un4saken doesn't allow it.riddict said:I myself have successfully connected to my remote sql using navicat but unable to connect using php in a remote server.
Interesting to hear about navicat though. If I may ask, have you tried the remote mySQL tool in cPanel yet? In theory it's supposed to give a remote server access to the database.