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;
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;