用 Percona 5.5.30 的 mysql 系統庫啟動 MariaDB 5.5.30 報錯:
[ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set...
[ERROR] Table './mysql/tables_priv' is marked as crashed and should be repaired
mysql.event 表結構差異:Percona 缺少 NOT_USED 枚舉值。diff 對比顯示枚舉定義不一致導致類型不匹配。
mysqldump -B mysql --opt --triggers=true --events -u root -p > mmmmmysql.sqlmysql.event、mysql.proc 的 CREATE TABLE 陳述式,保留 INSERT 資料跨分支升級/遷移時,系統表結構常有細微差異。最穩妥策略:全新安裝目標版本 → 僅導入用戶資料與權限資料 → 丟棄系統表結構定義。