mysql remote connection settings

mysql5.5 allow remote access

1. Start the mysql command cmd

2. Use the "use mysql" command, select the database you want to use, modify the basic information for a remote connection, stored in a mysql database, so use mysql database.

3. Use ". GRANT ALL PRIVILEGES ON * * TO 'root' @ '%' IDENTIFIED BY 'root' WITH GRANT OPTION;" command to change the settings of the remote connection.

4. Use the "flush privileges;" command just refresh permission to modify this to take effect.

5. Use the "select host, user from user;" to see the change was successful.

 

6. After the discovery or can not visit. Then I looked into the local access server.

 

Top screenshot, the last line of% root password and change like the first line.

After which you can visit. 

 

Guess you like

Origin www.cnblogs.com/zzl0916/p/11319883.html