How to open remote connection in mysql

Tools/Materials

  • mysql
  • windows

method/step

  1. Use the "Ctrl + R" key combination to quickly open the cmd window, and enter the "cmd" command to open the cmd window.

  2. Use the "mysql -uroot -proot" command to connect to the local mysql service.

  3. 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.

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

  5. Use the "flush privileges;" command to refresh the modified privileges to make them take effect.

  6. Use "select host, user from user;" to check whether the modification is successful.

    Transfer: http://jingyan.baidu.com/article/046a7b3ed85f3ef9c27fa9dc.html
     
     

    How to solve the error of 10038 reported by mysql remote connection?

    Transfer: http://jingyan.baidu.com/article/63acb44add614761fcc17ec2.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327095832&siteId=291194637