navicat remote connection to the server problem 1130,1045 error process

I stepped pit several times, collecting a beginning online, the solution is similar, groping for a long time to solve all completed, little bug really weary ah

First, I stepped pit recording, navicat 1045 and navicat 1130 seemingly belong to the same solution is to modify user permissions mysql database table, or that in itself is the same kind of problem

code show as below:

1.use mysql;

2.update user set host = '%' where user ='root';

3. select host, user from mysql.user;

4. View the picture is as follows:

. 5.GRANT ALL PRIVILEGES ON * * TO 'root' @ '%' IDENTIFIED BY 'database password' WITH GRANT OPTION; // modify permissions

6. flush privileges; // permission to refresh immediately

At this point re-connect remotely, nothing else should be just fine! ! !

 Source: bad habits Baoji SEO9 kinds of SEO

Guess you like

Origin www.cnblogs.com/1994jinnan/p/12080485.html