MySql database common settings

1. Set up a remote connection

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

 2. Reset the root password

update user set password=PASSWORD('新密码') where user='root';
flush privileges;

 

Guess you like

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