Php connection to mysql remote connection (10060) connection to Mysql using php will show Can't connect to MySQL server on 'IP' (10060)
There is no problem with connecting to the available software navicat. it is okay to change the ip address to localhost, but remote access is required now.
The server is rented and has no modification permission.
$ Con = mysql_connect (IP, name, pwd );
No connection, first aid !!
Reply to discussion (solution)
To remotely connect to mysql, mysql must authorize the visitor.
If you do not have permission settings, do not connect remotely.
Can navicat be connected?
10060 indicates that the ip address cannot be connected.
If you cannot change the permission, place a php file that can be connected to the server, remotely connect to the php file, and forward the SQL command for operations.
We recommend that you configure the connection attributes of PHP and navicat.
In the middle, I guess it was a setup error.