安装mysql 8
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
yum clean all
yum makecache
#安装客户端、服务端
yum install mysql-community-server mysql-community
#查看是否安装成功
mysql -V
'caching_sha2_password' cannot be loaded: /usr/local/mysql/lib/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
出现 验证加密 的问题
长话短说,就是新版用户验证采用新的加密方式。
简单处理,就是采用低版本 mysql5 加密方式
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
#上面第二个报错,连接次数过多
mysqladmin -u root -p -h localhost flush-hosts


文章讲述了在安装MySQL8.0时遇到的两个问题:新版本的caching_sha2_password验证失败,以及连接次数过多的错误。作者提供了使用mysql_native_password替代和解决连接限制的方法。
1万+

被折叠的 条评论
为什么被折叠?



