输入banner图图片脚本导航/分类

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

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