Mysql remote connection error

Mysql connection error: 1130-host ... is not allowed to connect to this MySql server how to deal with

The problem is because the database server mysql database in the user table does not have permission (it can be said with no user), following the recording process I encountered a problem and a solution.

Error in connection with Navicate After building environment LNMP

First, go down the path of change skip linux password: vim /etc/my.cnf

Then figure, let go here, if not directly write on it

Mysql remote connection error

 

First I encountered this problem on the server where treated with mysql connection

1, the connection server: mysql -u root -p

2, look at all the current databases: show databases;

3, enter the mysql database: use mysql;

4, to see all the tables in the mysql database: show tables;

5, view the data in the user table: select Host, User, Password from user;

6, modify the user table Host: update user set Host = '%' where User = 'root';

7, the last refresh: flush privileges;

# We must remember that the time to write sql statement after the completion of the words ";" The following is an illustration

Mysql remote connection error

 

Mysql remote connection error

Guess you like

Origin www.cnblogs.com/mengtaoadmin/p/11184029.html