MySQL使用过程中遇到过的问题记录

  |   0 评论   |   0 浏览

一、避免在MySQL数据库中使用“utf8”编码,改用“utf8mb4”,因为MySQL中的utf-8编码不完整。

二、Navicat连接MySQL出现2059 - authentication plugin 'caching_sha2_password' cannot be loaded;错误。是由于MySQL8版本之后使用了新的密码验证插件类型。执行

select user,host,plugin,authentication_string from user;

命令查看plugin字段为”caching_sha2_password“,然后执行

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

命令进行身份验证插件更改(localhost和password根据情况自行更改),改成之前版本的即可使用。


标题:MySQL使用过程中遇到过的问题记录
作者:Micronotes
地址:https://www.micronotes.top/articles/2020/08/27/1598508107645.html