国产探花免费观看_亚洲丰满少妇自慰呻吟_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語句,問題解決.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 彩票| 丰县| 滕州市| 温宿县| 宜州市| 禹城市| 巫山县| 罗定市| 抚州市| 封开县| 盐池县| 舟山市| 永昌县| 万山特区| 固原市| 古蔺县| 南澳县| 大连市| 玉树县| 汨罗市| 富川| 江达县| 华安县| 贵州省| 泊头市| 南阳市| 宣武区| 赤水市| 瓮安县| 从化市| 林甸县| 长乐市| 嵊泗县| 班玛县| 晋江市| 华容县| 平邑县| 金川县| 泰来县| 沭阳县| 金溪县|