當(dāng)前位置:首頁(yè) > IT技術(shù) > 數(shù)據(jù)庫(kù) > 正文

windows下mysql5.6版本升級(jí)至5.7
2021-09-17 16:47:10

為什么需要升級(jí)呢?

  使用navicat運(yùn)行一個(gè).sql文件,報(bào)錯(cuò)了

  報(bào)錯(cuò)信息: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類(lèi)型吧,5.7版本支持

?

方法:使用原地升級(jí)

參考鏈接:https://www.cnblogs.com/ansibee/p/7878215.html

寫(xiě)的很詳細(xì)!??!

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

解決:

  1. 點(diǎn)擊鏈接https://dev.mysql.com/downloads/mysql/
  2. 進(jìn)入點(diǎn)擊Looking for the latest GA version?
  3. 選擇對(duì)應(yīng)版本,點(diǎn)擊下載

    我選的版本:

?

?    別選這個(gè)版本debug-test:

? ? ? ? ?4.打開(kāi)F12開(kāi)發(fā)者工具,定位到No Thanks。。。對(duì)應(yīng)的元素,復(fù)制鏈接地址,使用迅雷下載

    

?

    5.成功

?

另一個(gè)問(wèn)題:?jiǎn)?dòng)5.7版本的mysql成功后,運(yùn)行navicat連接mysql,測(cè)試成功,但雙擊服務(wù)器名報(bào)錯(cuò)

    報(bào)錯(cuò)信息:[Err] 1146 - Table 'performance_schema.session_status' doesn't exist

    解決:cmd下輸入命令:mysql_upgrade -u root -p --force 輸入密碼就ok 然后重啟mysql服務(wù),就可以用啦

?

本文摘自 :https://www.cnblogs.com/

開(kāi)通會(huì)員,享受整站包年服務(wù)立即開(kāi)通 >