[root@VM_0_5_centos ~]# mysql -u root -p
Enter password:(输入您的密码)
mysql> grant all privileges on *.* to root@'%' identified by '(密码)';
mysql> flush privileges;
mysql> quit
即可实现远程root登录,最好建议修改数据库端口
[root@VM_0_5_centos ~]# mysql -u root -p Enter password:(输入您的密码) mysql> grant all privileges on *.* to root@'%' identifi…
[root@VM_0_5_centos ~]# mysql -u root -p
Enter password:(输入您的密码)
mysql> grant all privileges on *.* to root@'%' identified by '(密码)';
mysql> flush privileges;
mysql> quit
即可实现远程root登录,最好建议修改数据库端口