升级Mysql版本

1、卸载mysql服务

cmd(以管理员身份运行):mysqld --remove

2、下载mysql安装文件

官网(下载慢):https://dev.mysql.com/downloads/mysql/

腾讯软件中心(下载快):https://pc.qq.com/detail/3/detail_1303.html

我这里下载的是mysql-installer-community-8.0.19.0.msi文件,原来的版本是5.5.29。

3、安装mysql服务

注意,如果不卸载之前的mysql server,installer会选择更新到5.5.62的版本,而不会安装8.0.19的版本。所以需要卸载掉原来的mysql server,要记得备份数据库!!!

然后就可以安装了,安装过程中选择server only以及development machine即可,其他的默认就好了。

这个版本的安装好后,mysql服务已经装上去了!如果没有的话,输入mysqld --install安装服务。

4、使用Navicat连接mysql服务

如果出现Client does not support authentication protocol requested  by server;这个错误的话,打开Mysql Command Line Client,输入以下sql命令即可。

use mysql;

alter user 'root'@'localhost' identified with mysql_native_password by 'your_password'

 flush privileges;

觉得有用的老铁赞一下呗~

发布了78 篇原创文章 · 获赞 131 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/river66/article/details/104046097
今日推荐