MySQL database permission settings

insert into user(host, user, password) values("%", "root", password("yourpassword"))

 

 

grant all privileges on portal to 'web_db'@'%' with grant option; // assign permissions

 

revoke all privileges on *.* from 'web_db'@'%' with grant option; // revoke authorization

revoke  all on *.* from 'web_db'@'%';

flush privileges; // refresh privileges

 

bind-address = 0.0.0.0 // allow connections from any IP

bind-address = 127.0.0.1 // only allow local connections

 

protected-mode no redis protected mode, prohibit remote connection, open yes no close

Guess you like

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