How to resolve mysql problem when you get code 2003(10061) and 1130

When I use Navicate to connect to mysql on Ubuntu, I got message 2003(10061) firstly.mysql

To resovle this error, I midified one line of file my.cnf. Use command below:sql

sudo vi /etc/mysql/my.cnfthis

Then commented out line says "bind-address = 127.0.0.1".spa

After that I restart mysql. But got another message 1130.rest

It's the problem of host. Then I logon mysql. Issued command below.date

mysql -u root -pfile

mysql>use mysql;select

mysql>select 'host' from user where user='root';command

mysql>update user set host = '%' where user ='root';error

mysql>flush privileges;

mysql>select 'host'   from user where user='root';

相關文章
相關標籤/搜索