当前位置:Gxlcms > 数据库问题 > Navicat 连接VMware中Ubuntu 下的mysql5.7遇到的坑

Navicat 连接VMware中Ubuntu 下的mysql5.7遇到的坑

时间:2021-07-01 10:21:17 帮助过:14人阅读

WITH GRANT OPTION;

2. 由于操作错误,再次登录出现问题:“ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)”。

解决方案:

1、跳过密码进行登录

  修改mysql配置文件   在[mysqld]的段中加上两句:

    skip-name-resolve   
    skip-grant-tables   

2. 登录mysql,修改密码

/usr/bin/mysql登入mysql

use mysql ;   
update mysql.user set authentication_string=password(‘root‘) where user=‘root‘;
flush privileges;   
quit 

3. 重启mysql服务

  service mysql restart

Navicat 连接VMware中Ubuntu 下的mysql5.7遇到的坑

标签:with   denied   UI   授权   tab   配置   start   tables   option   

人气教程排行