关于MySQL的一些问题及解决方案

1. 解压安装MySQL8.0,报错Install/Remove of the Service Denied!

      在windows 的cmd命令行下安装mysql

      在mysql的bin目录下面执行: mysqld --install

报错:

      信息如下:

      Install/Remove of the Service Denied

解决方案

       打开cmd.exe程序的时候选择“用管理员身份打开”。

 

2. Navicat12 报 Authentication plugin 'caching_sha2_password' cannot be loaded

报错原因:

  报这个错是因为MySQL8使用了 caching_sha2_password 加密方式而之前MySQL使用的是 mysql_native_password 加密方式,而你的Navicat不支持 caching_sha2_password 加密方式造成的。

解决方案:

  目前我知道的解决方案有两种

  1. 修改mysql加密方式

  1 use mysql;
  2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码'; 
  3 FLUSH PRIVILEGES;

  2. 给Navicat添加插件

    先从在网上找到 caching_sha2_password.dll , 百度云:https://pan.baidu.com/s/1ALGmbKp6nWVctck3Gcleqw  提取码: maig

    然后将dll文件直接放到Navicat根目录即可。

上一篇:navicat连接异常 authentication plugin 'caching_sha2_password' 问题解决


下一篇:Mysql8.0.17压缩包安装——超详细简单教程