Set up remote access to the mysql

Open cmd, proceeds to the next bin path mysql

 

1, remote connection (Authorization Act)

    mysql -u root -p (landing mysql database)

 use mysql;

    grant all privileges on * * to root @ '%' identified by "root";. (latter refers to the root password mysql database)

 exit can be.

2, remotely connected (change table method)

   mysql -u root -p (landing mysql database)

   use mysql;

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

 exit can be.

Guess you like

Origin www.cnblogs.com/gwxppg/p/11388168.html