MySQL 5.0 遷移到 MariaDB 10.0.2 預存程序無法遷移

來源:互聯網
上載者:User

一直使用MySQL 5.0。最近匯入一批大資料表後,資料庫變得奇慢無比。原因是InnoDB引擎效能硬傷。遂升級資料庫,升級到MariaDB 10.0.2(個人學習總是拿最新的,更多版本看https://downloads.mariadb.org/)。MySQLdump匯出匯入。一直報[ERROR] Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted。預存程序一直導不進去。原因是兩個版本的mysql.proc表結構不一樣。

MySQL 5.0 的mysql.proc表結構:

 

Maria10.0.2 的mysql.proc表結構:

 

 

不想升級MySQL 5.0。用HeidiSQL匯出時不導預存程序。導完資料後再從MySQL資料庫copy CREATE code 到 Maria資料庫上執行一下。

 

總算完成了遷移,不容易啊。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.