How to upgrade Mysql 5.1 to MariaDB 10.0.X under CentOS 6.5 without using mysqldump

Jephe Wu -

Environment:  CentOs 6.5 64bit with default mysql 5.1 server and innodb engine for database.
Objective:  Upgrade database to MariaDB 10 without dumping table contents.

Concept:  Tried to upgrade directly from Mysql 5.1 to MariaDB 10 but it doesn't work, we got errors in mysql log file. However, upgrade to Percona server 5.5 first then upgrade to MariaDB 10 works.


upgrade to Percona 5.5 server first
run the following commands to upgrade mysql 5.1 to Percona 5.5,

yum install
/etc/init.d/mysql stop
rpm -e mysql mysql-server
yum install Percona-Server-client-55 Percona-Server-server-55
/etc/init.d/mysql start
mysql_upgrade -uroot -ppassword

upgrade Percona 5.5 to MariaDB 10.0.X

vi /etc/yum.repos.d/MariaDb.repo and put into following

# MariaDB 10.0 CentOS repository list - created 2014-12-10 08:39 UTC # [mariadb] name = MariaDB baseurl = gpgkey= gpgcheck=1
 /etc/init.d/mysql stop
sudo yum install MariaDB-server MariaDB-client
/etc/init.d/mysql start
mysql_upgrade -uroot -ppassword