MySQL 5.0 migration to MariaDB 10.0.2 stored procedure cannot be migrated

Source: Internet
Author: User

Always use MySQL 5.0. After a batch of large data tables have been imported recently, the database has become very slow. The reason is that the performance of the InnoDB engine is severely impaired. Then upgrade the database to MariaDB 10.0.2 (personal learning always takes the latest, more versions to see https://downloads.mariadb.org /). MySQLdump export and import. [ERROR] Column count of mysql. proc is wrong. Expected 20, found 16. The table is probably upted. Stored procedures cannot be imported. The reason is that the mysql. proc table of the two versions has different structures.

MySQL 5.0 mysql. proc table structure:

 

Mysql. proc table structure of Maria10.0.2:

 

 

You do not want to upgrade MySQL 5.0. When exported using HeidiSQL, the stored procedure is not exported. After importing the data, copy the CREATE code from the MySQL database to the Maria database.

 

It is not easy to complete the migration.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.