国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL5.5升級5.6后,執行grant出錯:ERROR 2013 (HY000): Lost connection

2024-07-24 12:39:38
字體:
來源:轉載
供稿:網友

MySQL 5.5 升級到 MySQL5.6,在什么都沒有更改的情況下,直接將data放置到MySQL 5.6下運行,一開始就一切正常,但在新加一個數據庫后,分配權限時,就出錯了:

ERROR 2013 (HY000): Lost connection to MySQL server during query

一開始以為是連接不上socket,因為同時有看到錯誤:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock

但查看之后,發現sock正常,沒任何問題,然后就跑到官網下面看mysql 5.6升級指南,其中有這么一段:

  1. After upgrading to a new version of MySQL, run mysql_upgrade (see Section 4.4.7, “mysql_upgrade — Check and Upgrade MySQL Tables”). This program checks your tables, and attempts to repair them if necessary. It also updates your grant tables to make sure that they have the current structure so that you can take advantage of any new capabilities. (Some releases of MySQL introduce changes to the structure of the grant tables to add new privileges or features.)  --Vevb.com 
  2. mysql_upgrade does not upgrade the contents of the help tables. For upgrade instructions, see Section 5.1.10, “Server-Side Help”. 
  3. mysql_upgrade should not be used when the server is running with --gtid-mode=ON, since it may make changes in nontransactional system tables in the mysql database, many of which are MyISAM and cannot be changed to use a different storage engine. See GTID mode and mysql_upgrade. 

那就明白了,執行一下:mysql_upgrade -u root -p

執行完后,再執行grant語句,問題解決.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 安仁县| 金昌市| 溧阳市| 焦作市| 丹棱县| 榆社县| 收藏| 灌阳县| 巴彦淖尔市| 枣阳市| 河曲县| 屏山县| 鸡西市| 都昌县| 湖北省| 桐庐县| 邛崃市| 枝江市| 新邵县| 东明县| 财经| 綦江县| 绍兴市| 昆山市| 衢州市| 余姚市| 嘉黎县| 香港| 张家界市| 同德县| 宁晋县| 伊川县| 江西省| 惠东县| 兰考县| 太谷县| 陇西县| 雅安市| 洛扎县| 昆山市| 广德县|