mysqld install报错:Install/Remove of the Service DeniedMy/Authentication plugin 'caching_sha

错误1:Install/Remove of the Service DeniedMy

第一步:

首次安装MySQL压缩包:安装至:D:\Program Files (x86)\MySQL

第二步:

进入命令行:运行cmd->cd /d D:\Program Files (x86)\MySQL\bin%进入mysql安装目录

运行:mysql install突然报错:

Install/Remove of the Service Denied

解决方案:

进入cmd.exe(目录:C:\Windows\System32\cmd.exe)以管理员身份运行,最后再次执行mysqld install成功!!!!

ps:效果如图

mysqld install报错:Install/Remove of the Service DeniedMy/Authentication plugin 'caching_sha_第1张图片

错误2:MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found

错误原因:因为mysql8以后不支持8.0改变了身份验证插件,改成使用老版本的身份验证插件方式就好了。

解决方法:

cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"

C:\Program Files\MySQL\MySQL Server 8.0\bin> mysql -u root -p
Enter password: *********

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newrootpassword';
Query OK, 0 rows affected (0.10 sec)

mysql> exit
Ps:Sequel不匹配MySQL8.0.在导入数据库是会存在明显错误,所以建议使用mysql更低的版本。例如5.7可以正常使用。

你可能感兴趣的:(MySQL)