Home > Database > Mysql Tutorial > CentOS 下 MySQL 移至 MariaDB

CentOS 下 MySQL 移至 MariaDB

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:40:09
Original
1018 people have browsed it

Google都将MySQL移至MariaDB了,我的朋友也Ubuntu下移至MariaDB,我还是不能落后吧,今天将CentOS下MySQL移至MariaDB。总结下我的步骤: 1、备份 首先是备份,保证所有数据安全,具体备份我就不详细说了。 2、卸载MySQL相关 yum remove mysql-* 卸载掉所有My

Google都将MySQL移至MariaDB了,我的朋友也Ubuntu下移至MariaDB,我还是不能落后吧,今天将CentOS下MySQL移至MariaDB。总结下我的步骤:

1、备份

首先是备份,保证所有数据安全,具体备份我就不详细说了。

2、卸载MySQL相关

yum remove mysql-*
Copy after login

卸载掉所有MySQL相关。

3、安装MariaDB

mkdir /Download
cd /Download
wget http://yum.mariadb.org/5.5/centos6-amd64/rpms/MariaDB-5.5.33a-centos6-x86_64-client.rpm
wget http://yum.mariadb.org/5.5/centos6-amd64/rpms/MariaDB-5.5.33a-centos6-x86_64-common.rpm
wget http://yum.mariadb.org/5.5/centos6-amd64/rpms/MariaDB-5.5.33a-centos6-x86_64-compat.rpm
wget http://yum.mariadb.org/5.5/centos6-amd64/rpms/MariaDB-5.5.33a-centos6-x86_64-server.rpm
rpm -U MariaDB*
Copy after login

这里注意下载的MariaDB版本,我的是CentOS 6 64bit的,其他版本可以在http://yum.mariadb.org/找到对应后下载。

4、重启MariaDB

MariaDB安装后,常用命令都和MySQL一样,MySQL的service是mysqld,而MariaDB的service是mysql。

chkconfig mysql on
service mysql restart
Copy after login

5、总

MariaDB安装后,phpMyAdmin一样使用,常用命令也和MySQL一样。各位亲升级请一定先备份数据,我不抱赔偿哦~娃哈哈。

Via:xiedexu.cn

CentOS 下 MySQL 移至 MariaDBCentOS 下 MySQL 移至 MariaDBCentOS 下 MySQL 移至 MariaDBCentOS 下 MySQL 移至 MariaDBCentOS 下 MySQL 移至 MariaDB
Related labels:
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