MySQL 5.7 建立使用者報錯 ERROR 1805 (HY000): Column count of mysql.user is wrong
MySQL 5.7 建立使用者報錯 ERROR 1805 (HY000): Column count of mysql.user is wrong. Expected 45, found 42.
報錯原因:
資料庫之前做了mysqldump的全庫匯入,匯入了mysql庫中的使用者表,mysqldump的備份來自MySQL 5.5版本。
解決方法:
使用mysql_upgrade升級資料庫的使用者表。
# mysql_upgrade -uroot -p
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
報錯原因:
資料庫之前做了mysqldump的全庫匯入,匯入了mysql庫中的使用者表,mysqldump的備份來自MySQL 5.5版本。
解決方法:
使用mysql_upgrade升級資料庫的使用者表。
# mysql_upgrade -uroot -p
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2154944/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- MySQL5.7叢集(MGR)啟動報ERROR 3092 (HY000)MySqlError
- MySQL報錯ERROR 2013 (HY000): Lost connection to MySQL server during queryMySqlErrorServer
- MySQL 報錯 ERROR 1290 (HY000): running with the --secure-file-privMySqlError
- 【MySQL】ERROR 1290 (HY000): --secure-file-priv--匯出報錯MySqlError
- Mysql連線錯誤ERROR 2003 (HY000)MySqlError
- mysql 報錯:ERROR 1366 (HY000): Incorrect string value: ‘\xD5\xC5\xC8\xFD‘ for column ‘name‘ at row 1MySqlError
- mysql 5.6.25報錯ERROR 1372 (HY000): Password hash 的一點思考MySqlError
- Centos7-mysql執行報錯ERROR1820(HY000):YoumustresetyourpasswordusingALTERUSERstatementbeforeexecutingthisstatement.CentOSMySqlError
- pymysql.err.OperationalError: (1136, “Column count doesn‘t match value count at row 1“)報錯反省。MySqlError
- MySQL建立觸發器時報錯Error Code: 1064MySql觸發器Error
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- ERROR 1290 (HY000): The MySQL server is running withErrorMySqlServer
- mysql無法建立儲存過程問題 ERROR 1307 (HY000)MySql儲存過程Error
- 阿里雲mysql遠端登入報ERROR 2027(HY000)阿里MySqlError
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- Mysql報錯注入原理分析(count()、rand()、group by)MySql
- MySQL 5.7從庫報錯exceeds of slave_pending_jobs_size_max. Error_code: 1864MySqlError
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- 建立xtrbackup備份使用者 ERROR 1819 (HY000): Your password does not satisfy the current policy requirementsErrorUIREM
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- MySql5.7及以上 ORDER BY 報錯問題MySql
- mysql錯誤詳解(1819):ERROR 1819 (HY000): Your password does not satisfy the current policy requirementsMySqlErrorUIREM
- MySQL 5.7 到 5.6,出現 Index column size too large. The maximum column size is 767 bytesMySqlIndex
- ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization paErrorMySqlServer
- [20180608]Wrong Results with IOT, Added Column and Secondary Index.txtIndex
- MySQL5.7半同步複製報錯案例分析MySql
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables optErrorMySqlServer
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- [20180609]Wrong Results with IOT, Added Column and Secondary Index2.txtIndex
- mysql5.7 資料匯入5.6 Index column size too large. The maximum column size is 767 bytes.MySqlIndex
- 安裝MySQL5.7報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.MySqlServerAI
- MySQL error 錯 誤 碼MySqlError
- ERROR 1114 (HY000) The table '' is fullError
- MySQL案例02:ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGESMySqlError
- MySQL 使用 show tables 時出現 ERROR 1449 (HY000) 問題MySqlError
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL