2003-Can't connect to Mysql on 'hostname' (10061) solution when navicat for mysql connects to the database remotely

Sometimes when using navicat for mysql to connect to the database remotely, after entering the host name, password and port, the problem of 2003-Can't connect to Mysql on 'host name' (10061) occurs during the connection test.

The solution is as follows:

The database under ubuntu connected remotely in this article is because the mysql of the ubuntu system is not allowed to be operated by remote connection

So you need to modify the mysql configuration file

Steps: (1) cd /etc/mysql

(2)vim my.cnf

(3) Modify bind-address = 127.0.0.1 to bind-address = 0.0.0.0

(4) Save and exit

(5) /etc/init.d/mysql restart (must restart the database, otherwise it is useless)

ok, now you can connect to this database remotely. 


Original address: http://blog.csdn.net/u013709332/article/details/50162085

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325903533&siteId=291194637