MySQL should be changed. The replacement remark comes from MariaDB of the same creator. I have no appetite for dinner tonight. CentOS6.4 under VMware; uses the official YUM source. The network speed here is not very good. Well, even if it is not good, continue. Given the priority, the two databases are created by the same person. In the same system, MySQL and MariaDB cannot be compatible without any processing. Here, we adopt a unique approach. First, we need to uninstall MySQL. Otherwise, the installation will prompt:
Error: mysql conflicts with MariaDB-server-5.5.33a-1.x86_64
1. Configure the YUM source officially provided by MariaDB:
[Root @ bogon Sources] # pwd
/Mnt/Sources
[Root @ bogon Sources] # uname-
Linux bogon 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[Root @ bogon Sources] # grep-v "^ #"/etc/yum. repos. d/CentOS-Media.repo
[Media]
Name = Local Sources
Baseurl = file: // media/cdrom/
File: // media/cdrom1/
Gpgcheck = 1
Enabled = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[Mariadb]
Name = MariaDB
Base url = http://yum.mariadb.org/5.5/centos6-amd64
Gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Gpgcheck = 1
2. Run the yum installation command:
[Root @ bogon Sources] # yum install MariaDB-server MariaDB-client