use mysql;进入mysql库 grant all privileges on \*.\* to root@'%'identified by 'ur passwd'; 设置允许远程连接
use mysql;
grant all privileges on \*.\* to root@'%'identified by 'ur passwd';
flush privileges; 刷新权限
flush privileges;
报错: 1045 , 提示连接到本地(10.122.2.5/10.122.1.77)失败 access denied