1558 - Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 50564, now

在使用MariaDB時,使用命令升級了MariaDB版本,在使用Navicat Premium導出數據庫數據和結構的時候除了問題

 1558 - Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 50564, now running 100412. Please use mysql_upgrade to fix this error

 

可以使用 mysql_upgrade 命令來解決這個問題:

[root@172 ~]# mysql_upgrade -uroot -p
Enter password: 
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Upgrading from a version before MariaDB-10.1
Phase 2/7: Installing used storage engines
Checking for tables with unknown storage engine
Phase 3/7: Fixing views
Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables
Processing databases
db_mall
db_mall.aa                                         OK
db_mall.t_mall_admin_user                          OK
db_mall.t_mall_carousel                            OK
db_mall.t_mall_goods_category                      OK
db_mall.t_mall_goods_detail                        OK
db_mall.t_mall_goods_info                          OK
db_mall.t_mall_index_category                      OK
db_mall.t_mall_index_config                        OK
db_mall.t_mall_index_left_category                 OK
db_mall.t_mall_order                               OK
db_mall.t_mall_order_item                          OK
db_mall.t_mall_shopping_cart_item                  OK
db_mall.t_mall_user                                OK
information_schema
performance_schema
Phase 7/7: Running 'FLUSH PRIVILEGES'
OK
[root@172 ~]# 

然後再執行導出數據和結構就可以啦。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章