Php remote connection to mysql (10060)

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.