MySQL database access authorization

grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;

The first root indicates the user name, % indicates that all computers can be connected, or a certain ip address can be set to run the connection, and the second root indicates the password.

flush privileges;

The order takes effect immediately.

Guess you like

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