MySQL,4 0公升級到5 1遇到乙個問題

2021-08-26 18:25:36 字數 649 閱讀 3686

1 資料庫資料量暴增,對比其他業務類似的資料庫發現某個表的資料量異常,最後確定了乙個重複遷移資料的bug...

120301 17:30:43 [error] column count of mysql.db is wrong. expected 22, found 15. the table is probably corrupted

120301 17:30:43 [error] mysql.user has no `event_priv` column at position 29

120301 17:30:43 [error] event scheduler: an error occurred when initializing system tables. disabling the event scheduler.

2 4.0公升級5.1 sa工程師在寫自動指令碼shi忘記./bin/mysql_upgrade -u root -p --sock=/tmp/mysql5.sock了

3 以前使用myisam引擎的時候,多執行緒update往往會把表壓壞,最近在insert的時候也傳送了表損毀,最後鎖定insert tablename values select ....... union all select .......,會帶來表損毀的問題,拆開,乙個乙個insert,就沒問題了

MySQL,4 0公升級到5 1遇到乙個問題

1 資料庫資料量暴增,對比其他業務類似的資料庫發現某個表的資料量異常,最後確定了乙個重複遷移資料的bug.120301 17 30 43 error column count of mysql.db is wrong.expected 22,found 15.the table is probabl...

MySQL 4 0 公升級到mysql 5 0的方法

一 從 4.0 到 4.1 的主要變化 如果在4.1.0到4.1.3版本的mysql中建立了包含 timestamp 欄位的 innodb表。則在公升級到4.1.4及更高時需要重建表,因為儲存格式發生變化了 字串根據標準sql來比較 比較之前不刪除末尾的空格,以前用末尾空格擴充套件了比較短的字串。現...

mysql公升級 5 1公升級到5 7

一 mysql公升級 1.備份資料庫 mysqldump u root ppasswod all databases data bak db bak date y m d h m sql 同時可備份整個mysql目錄,包括data目錄,可用於公升級失敗快速回滾 2.安裝5.7 提供兩種安裝方式參考,...