navicat远程连接linux服务器的mysql

来源:互联网 发布:香港mac pro价格 编辑:程序博客网 时间:2024/05/22 01:32
在远程服务器的登陆mysql,
    mysql -u root -p

执行命令
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
(第一个root代表mysql的用户名,第二个root代表密码)
grant all privileges on *.* to root@"localhost" identified by "root" with grant option;


执行命令,刷新权限
FLUSH PRIVILEGES;

使用navicate登陆