ERROR 1054 (42S22): Unknown column 'plugin' in 'mysql.user'
新增使用者時報錯
mysql> grant all privileges on *.* to 'aaa'@'%' identified by 'aaa123';
ERROR 1054 (42S22): Unknown column 'plugin' in 'mysql.user'
升級mysql資料庫時,mysql.user表沒有升級,導致欄位缺少,
透過一下方法修改mysql.user表
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> ALTER TABLE user ADD Create_tablespace_priv ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER Trigger_priv;
Query OK, 14 rows affected (0.08 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD plugin CHAR(64) NULL AFTER max_user_connections;
Query OK, 14 rows affected (0.09 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD authentication_string TEXT NULL DEFAULT NULL AFTER plugin;
Query OK, 14 rows affected (0.05 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD password_expired ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER authentication_string;
Query OK, 14 rows affected (0.04 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> grant all privileges on *.* to 'aaa'@'%' identified by 'aaa123';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on *.* to 'aaa'@'%' identified by 'aaa123';
ERROR 1054 (42S22): Unknown column 'plugin' in 'mysql.user'
升級mysql資料庫時,mysql.user表沒有升級,導致欄位缺少,
透過一下方法修改mysql.user表
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> ALTER TABLE user ADD Create_tablespace_priv ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER Trigger_priv;
Query OK, 14 rows affected (0.08 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD plugin CHAR(64) NULL AFTER max_user_connections;
Query OK, 14 rows affected (0.09 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD authentication_string TEXT NULL DEFAULT NULL AFTER plugin;
Query OK, 14 rows affected (0.05 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE user ADD password_expired ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER authentication_string;
Query OK, 14 rows affected (0.04 sec)
Records: 14 Duplicates: 0 Warnings: 0
mysql> grant all privileges on *.* to 'aaa'@'%' identified by 'aaa123';
Query OK, 0 rows affected (0.00 sec)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28282660/viewspace-2134342/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL5.7更改密碼時出現ERROR 1054 (42S22): Unknown column 'password' in 'field list'MySql密碼Error
- MySQL5.7忘記密碼時出現ERROR 1054 (42S22): Unknown column 'password' in 'field list'MySql密碼Error
- mysql Unknown error 1054MySqlError
- ndo2db: mysql_error: ‘Unknown column ‘importance’ in ‘field list”MySqlErrorImport
- Error: no such columnError
- MySQL 5.7 建立使用者報錯 ERROR 1805 (HY000): Column count of mysql.user is wrongMySqlError
- 更改密碼時出現ERROR 1054密碼Error
- mysql Unknown column ‘‘ in ‘field list‘解決方案MySql
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- PbootCMS 織夢提示Unknown column‘ad.clsid’in‘onboot
- emulator: ERROR: unknown virtual device nameErrordev
- **spring-boot-maven-plugin:<unknown>**解決方法SpringbootMavenPlugin
- error: unknown error 22 setting key 'kernel.shmmax'ErrorHMM
- build Error -- extract-text-webpack-pluginUIErrorWebPlugin
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- msql查詢中報錯 Unknown column '黃色水果' in 'where clause'SQL
- GGS ERROR 160 Bad column indexErrorIndex
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- windows redis sentinel listen: Unknown error解決方案WindowsRedisError
- Http failure response 0 Unknown error 錯誤分析HTTPAIError
- ERROR 1524 (HY000): Plugin is not loadedErrorPlugin
- Unknown SSL protocol error in connection to xxx:443ProtocolError
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- Unknown column ‘name‘ in ‘field list‘ ; bad SQL grammar []; nested exception is com.mysql.jdbc.excepExceptionMySqlJDBC
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- ERROR 1193: Unknown system variable 'log_slow_queries'Error
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解決辦法ErrorMySql
- mysql 主從同步 Error 'Out of range value for column的問題MySql主從同步Error
- Error:(4, 0) Plugin with id 'com.jakewharton.butterknife' not found.ErrorPlugin
- MySQL:ERROR 1286 (42000): Unknown storage engine 'MyISAM'MySqlError
- 解決AndroidStudio建立模擬器時unknown errorAndroidError
- Andorid“emulator: ERROR: unknown virtual device name”問題解決Errordev
- error: "net.ipv4.ip_conntrack_max" is an unknown keyError
- Discuz雲平臺站點資訊同步失敗,An unknown error occurred. May be DNS Error.ErrorDNS
- 記錄錯誤: *Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘spec_templaMySqlJDBCExceptionError
- SQLITE_ERROR - table sap_capire_bookshop_books has no column named currencySQLiteErrorAPI
- Android之NDK開發錯誤 error: unknown type name 'JNIEXPORT'AndroidErrorExport
- 解決Mac java.net Local host name unknown error的方法MacJavaError