ndo2db: mysql_error: ‘Unknown column ‘importance’ in ‘field list”
ndo2db: mysql_error: ‘Unknown column ‘importance’ in ‘field list”
問題描述:
解決方法執行 mysql-upgrade-2.0.0.sql(這個檔案在ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql這個位置。)
方法
mysl -uroot -p
mysql> use nagios;
mysql> source /home/anzhuangbao/ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql
如果soucre報如下錯誤
ERROR 1146 (42S02): Table ‘nagios.nagios_notifications’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contactnotifications’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contactnotificationmethods’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_logentries’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_acknowledgements’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contacts’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_hosts’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_services’ doesn’t exist
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Statement prepared
+——————————+
| INFO: Index does not exists. |
+——————————+
| INFO: Index does not exists. |
+——————————+
1 row in set (0.00 sec)
ERROR 1146 (42S02): Table ‘nagios.nagios_logentries’ doesn’t exist
Query OK, 0 rows affected, 1 warning (0.00 sec)
請將mysql-upgrade-2.0.0.sql裡所有nagios_修改為npc_
再次執行
mysql> source /home/anzhuangbao/ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql
Query OK, 0 rows affected (0.29 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.26 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.34 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (1.00 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.26 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.57 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (1.09 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.94 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Statement prepared
+——————————+
| INFO: Index does not exists. |
+——————————+
| INFO: Index does not exists. |
+——————————+
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.69 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> \q
Bye
問題解決。
問題描述:
解決方法執行 mysql-upgrade-2.0.0.sql(這個檔案在ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql這個位置。)
方法
mysl -uroot -p
mysql> use nagios;
mysql> source /home/anzhuangbao/ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql
如果soucre報如下錯誤
ERROR 1146 (42S02): Table ‘nagios.nagios_notifications’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contactnotifications’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contactnotificationmethods’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_logentries’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_acknowledgements’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_contacts’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_hosts’ doesn’t exist
ERROR 1146 (42S02): Table ‘nagios.nagios_services’ doesn’t exist
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Statement prepared
+——————————+
| INFO: Index does not exists. |
+——————————+
| INFO: Index does not exists. |
+——————————+
1 row in set (0.00 sec)
ERROR 1146 (42S02): Table ‘nagios.nagios_logentries’ doesn’t exist
Query OK, 0 rows affected, 1 warning (0.00 sec)
請將mysql-upgrade-2.0.0.sql裡所有nagios_修改為npc_
再次執行
mysql> source /home/anzhuangbao/ndoutils-2.0.0/db/mysql-upgrade-2.0.0.sql
Query OK, 0 rows affected (0.29 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.26 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.34 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (1.00 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.26 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.57 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (1.09 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.94 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Statement prepared
+——————————+
| INFO: Index does not exists. |
+——————————+
| INFO: Index does not exists. |
+——————————+
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.69 sec)
Records: 0 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> \q
Bye
問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1685133/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql Unknown column ‘‘ in ‘field list‘解決方案MySql
- Unknown column ‘name‘ in ‘field list‘ ; bad SQL grammar []; nested exception is com.mysql.jdbc.excepExceptionMySqlJDBC
- 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
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- PbootCMS 織夢提示Unknown column‘ad.clsid’in‘onboot
- msql查詢中報錯 Unknown column '黃色水果' in 'where clause'SQL
- ERROR 1054 (42S22): Unknown column 'plugin' in 'mysql.user'ErrorPluginMySql
- POXPOEPO Supplier Contact Field List Of Values Contains No EntriesAI
- Importance samplingImport
- The importance of self-confidenceImportIDE
- 記錄錯誤: *Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘spec_templaMySqlJDBCExceptionError
- LeetCode 690. Employee ImportanceLeetCodeImport
- mysql 觸發器SQLSTATE[42S22] 'now.order_no' in 'field list' 的錯誤MySql觸發器
- 當模型 onethink_model表list_grid欄位為空時,get_list_field 函式發生錯誤模型函式
- 一張圖看懂CSS cascade, specific, importance, inheritanceCSSImport
- java反射——FieldJava反射
- Error: no such columnError
- [BUG反饋]當模型 onethink_model表list_grid欄位為空時,get_list_field 函式發生錯誤模型函式
- MySQL 之 ORDER BY FIELDMySql
- add field security
- yebis error ---depth of fieldError
- Column Monitoring
- TypeScript 裡的 class fieldTypeScript
- tpextbuilder- Displayers[元件]- FieldUI元件
- ABAP指標field symbol!指標Symbol
- Field Parameter的設定
- ORACLE RAC UNKNOWNOracle
- Index column size too large. The maximum column size is 767 bytesIndex
- Hibernate 註解@Column(nullable = false) 和 @Column(unique=true)NullFalse
- CSS column-spanCSS
- CSS column-gapCSS
- CSS column-ruleCSS
- Oracle Column Group StatisticsOracle
- MAX or MIN of Indexed ColumnIndex
- [PT]Column Histogram StatisticsHistogram
- Index column size too large. The maximum column size is 767 bytes.Index
- 11-Overview-Field SelectorsView