日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql upgrade 失败_`mysql_upgrade`失败,没有给出真正的理由

發布時間:2023/12/19 数据库 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql upgrade 失败_`mysql_upgrade`失败,没有给出真正的理由 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我正在從

MySQL 5.1升級到5.5,運行mysql_upgrade并獲得此輸出:

# mysql_upgrade

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

FATAL ERROR: Upgrade failed

關于在哪里尋找正在發生的事情(或者,沒有發生?)的任何想法,以便我可以解決任何錯誤并實際運行mysql_upgrade?

謝謝!

更多輸出:

# mysql_upgrade --verbose

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

FATAL ERROR: Upgrade failed

# mysql_upgrade --debug-check --debug-info

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

FATAL ERROR: Upgrade failed

# mysql_upgrade --debug-info

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

FATAL ERROR: Upgrade failed

User time 0.00, System time 0.00

Maximum resident set size 1260, Integral resident set size 0

Non-physical pagefaults 447, Physical pagefaults 0, Swaps 0

Blocks in 0 out 16, Messages in 0 out 0, Signals 0

Voluntary context switches 9, Involuntary context switches 5

# mysql_upgrade --debug-check

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

FATAL ERROR: Upgrade failed

通過mysqladmin shutdown關閉mysqld –skip-grant-tables并通過服務mysql start重新啟動mysql后,錯誤日志會一遍又一遍地遍歷這組錯誤:

130730 21:03:27 [Note] Plugin 'FEDERATED' is disabled.

/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist

130730 21:03:27 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

130730 21:03:27 InnoDB: The InnoDB memory heap is disabled

130730 21:03:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins

130730 21:03:27 InnoDB: Compressed tables use zlib 1.2.3.4

130730 21:03:27 InnoDB: Initializing buffer pool, size = 20.0G

130730 21:03:29 InnoDB: Completed initialization of buffer pool

130730 21:03:30 InnoDB: highest supported file format is Barracuda.

InnoDB: Log scan progressed past the checkpoint lsn 588190222435

130730 21:03:30 InnoDB: Database was not shut down normally!

InnoDB: Starting crash recovery.

InnoDB: Reading tablespace information from the .ibd files...

InnoDB: Restoring possible half-written data pages from the doublewrite

InnoDB: buffer...

InnoDB: Doing recovery: scanned up to log sequence number 588192055067

130730 21:03:30 InnoDB: Starting an apply batch of log records to the database...

InnoDB: Progress in percents: 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

InnoDB: Apply batch completed

InnoDB: Last MySQL binlog file position 0 81298895, file name /var/log/mysql/mysql-bin.006008

130730 21:03:33 InnoDB: Waiting for the background threads to start

130730 21:03:34 InnoDB: 5.5.32 started; log sequence number 588192055067

130730 21:03:34 [Note] Recovering after a crash using /var/log/mysql/mysql-bin

130730 21:03:34 [Note] Starting crash recovery...

130730 21:03:34 [Note] Crash recovery finished.

130730 21:03:34 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306

130730 21:03:34 [Note] - '0.0.0.0' resolves to '0.0.0.0';

130730 21:03:34 [Note] Server socket created on IP: '0.0.0.0'.

130730 21:03:34 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

通過mysqld_safe啟動MySQL日志–skip-grant-tables

130730 21:19:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

130730 21:19:36 [Note] Plugin 'FEDERATED' is disabled.

130730 21:19:36 InnoDB: The InnoDB memory heap is disabled

130730 21:19:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins

130730 21:19:36 InnoDB: Compressed tables use zlib 1.2.3.4

130730 21:19:37 InnoDB: Initializing buffer pool, size = 20.0G

130730 21:19:39 InnoDB: Completed initialization of buffer pool

130730 21:19:39 InnoDB: highest supported file format is Barracuda.

130730 21:19:42 InnoDB: Warning: allocated tablespace 566, old maximum was 0

130730 21:19:42 InnoDB: Waiting for the background threads to start

130730 21:19:43 InnoDB: 5.5.32 started; log sequence number 588192055067

130730 21:19:43 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306

130730 21:19:43 [Note] - '0.0.0.0' resolves to '0.0.0.0';

130730 21:19:43 [Note] Server socket created on IP: '0.0.0.0'.

130730 21:19:43 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them

130730 21:19:43 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure

130730 21:19:43 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure

130730 21:19:43 [Note] /usr/sbin/mysqld: ready for connections.

Version: '5.5.32-0ubuntu0.12.04.1-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)

據我了解,所有表結構/存在問題(因為它與mysql系統表有關)應該通過運行mysql_upgrade來糾正:

總結

以上是生活随笔為你收集整理的mysql upgrade 失败_`mysql_upgrade`失败,没有给出真正的理由的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。