关于初次安装mysql8.01遇到的问题解决

1、安装过程中出现start server卡住,服务启动后又停止的问题
出现这个问题不用改什么my.ini,配置什么,其实就是mysql生成的log文件用了你电脑用户名,而有些同学的用户名是中文造成的乱码问题,卸载后修改就行了,详细链接https://blog.csdn.net/liaosiqian/article/details/78307293

2、安装后链接数据库是出现Client does not support authentication protocol requested
by server; consider upgrading MySQL client
你是不是去写了set mysql.user ‘root’@’%’ password=old_password(‘123456’)??????
我试了一个下午,感觉网上这帮人在骗我,ERROR old_password ?????
打开mysql workbench 在主界面项目那里点加号
关于初次安装mysql8.01遇到的问题解决_第1张图片
然后configure server management
关于初次安装mysql8.01遇到的问题解决_第2张图片
点next 然后在下面那里看到红色的报错
Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2):

这根本就不是old_password
这种密码加密方式【caching_sha2_password】,客户端不支持。大概是这个意思
在数据库服务器上登录:
mysql>use mysql;
mysql>select user, host, plugin, authentication_string from user\G;
***************** 2. row *****************
user: root
host: %
plugin: caching_sha2_password
惊不惊喜,Emmmmm…….
客户端找不到 caching_sha2_password 插件,于是登录不上,本来是要这种插件的,但是其实
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’; 就行
因为客户端支持的这种native加密方式,然后还是连接不上?这时候改一下登录密码就行

你可能感兴趣的:(MySQL)