yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
修改/etc/my.cnf文件
[client]
port=3306
socket=/mysqldb/data/mysql.sock
[mysqld]
datadir=/mysqldb/data
socket=/mysqldb/data/mysql.sock
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
修改/etc/my.cnf文件
[client]
port=3306
socket=/mysqldb/data/mysql.sock
[mysqld]
datadir=/mysqldb/data
socket=/mysqldb/data/mysql.sock