Remote access to mysql open all permission settings

Remote access to mysql cannot create a database problem:

  First log in to mysql

  mysql -u root -p

  Then enter your password to enter the execution command side of mysql

  Execute the following statement:

  GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "password";

  The above root is the user name and password is the password, which can be modified accordingly.

  Finally execute:

  flush privileges;

  At this point, the permissions have been released.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324713539&siteId=291194637