Home > Database > Mysql Tutorial > body text

MySQL 5.0 迁移到 MariaDB 10.0.2 存储过程无法迁移

WBOY
Release: 2016-06-07 17:29:28
Original
1180 people have browsed it

一直使用MySQL 5.0。最近导入一批大数据表后,数据库变得奇慢无比。原因是InnoDB引擎性能硬伤。遂升级数据库,升级到MariaDB 10.

一直使用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数据库上执行一下。

 

总算完成了迁移,不容易啊。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template