Tools/Materials
-
mysql
-
windows
method/step
-
Use the "Ctrl + R" key combination to quickly open the cmd window, and enter the "cmd" command to open the cmd window.
-
Use the "mysql -uroot -proot" command to connect to the local mysql service.
-
Use the "use mysql" command, select the database to be used, modify the basic information of the remote connection, and save it in the mysql database, so use the mysql database.
-
Use the "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;" command to change settings for remote connections.
-
Use the "flush privileges;" command to refresh the modified privileges to make them take effect.
-
Use "select host, user from user;" to check whether the modification is successful.