MySQL Remote connection

Error: ERROR 2003 (HY000): Can’t connect to MySQL server on ’192.168.1.6′ (10061)

Solution:

1. make sure comment below line within /etc/mysql/my.cnf

#bind-address = 127.0.0.1

2. “sudo service mysql restart” to restart mysql.

3. grant all on *.* to username@’%’ identified by ‘password’ with grant option;

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>