[root@zhang-01 mysql]# cd /usr/local/src
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86_64/mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz
[root@zhang-01 mysql]#tar zxvf mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz
[root@zhang-01 mysql]#mv mariadb-10.2.6-linux-glibc_214-x86_64 /usr/local/mariadb
[root@zhang-01 mysql]#cd /usr/local/mariadb
[root@zhang-01 mysql]#./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadb
[root@zhang-01 mysql]#cp support-files/my-small.cnf /usr/local/mariadb/my.cnf
[root@zhang-01 mysql]#cp support-files/mysql.server /etc/init.d/mariadb #启动脚本
[root@zhang-01 mysql]#vi /usr/local/mariadb/my.cnf #在这个配置文件中,不需要改
/etc/init.d/mariadb start
再次启动失败。。。
原文地址:http://blog.51cto.com/13646023/2120113