Centos 6.5 64位安装MariaDB

1
vi /etc/yum.repos.d/MariaDB.repo

粘贴以下内容,保存退出

1
2
3
4
5
6
7
# MariaDB 10.0 CentOS repository list - created 2015-08-17 12:18 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
1
sudo yum install MariaDB-server MariaDB-client

启动

1
sudo /etc/init.d/mysql start

或者

1
sudo service mysql start

关闭就换stop 重启restart

卸载

1
sudo yum remove MariaDB-server
原文链接:https://xiaohost.com/1312.html,转载请注明出处。
0

评论0

请先