windows下mysql5.6版本升级至5.7

为什么需要升级呢?

  使用navicat运行一个.sql文件,报错了

  报错信息:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NOT NULL COMMENT '封面',

  原因:貌似是5.6版本不支持json类型吧,5.7版本支持

 

方法:使用原地升级

参考链接:https://www.cnblogs.com/ansibee/p/7878215.html

写的很详细!!!

注意:下载5.7版本https://dev.mysql.com/downloads/mysql/   也太慢了吧

解决:

  1. 点击链接https://dev.mysql.com/downloads/mysql/
  2. 进入点击Looking for the latest GA version?
  3. 选择对应版本,点击下载

    我选的版本:

 

     别选这个版本debug-test:

         4.打开F12开发者工具,定位到No Thanks。。。对应的元素,复制链接地址,使用迅雷下载

    

 

    5.成功

 

另一个问题:启动5.7版本的mysql成功后,运行navicat连接mysql,测试成功,但双击服务器名报错

    报错信息:[Err] 1146 - Table 'performance_schema.session_status' doesn't exist

    解决:cmd下输入命令:mysql_upgrade -u root -p --force 输入密码就ok 然后重启mysql服务,就可以用啦

 

posted @ 2021-09-17 13:26  wind_y  阅读(78)  评论(0编辑  收藏  举报