1.下载
~~~~~
4.在/etc/下面创建my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
————————————————
版权声明:本文为CSDN博主「团子ing」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yeyinglingfeng/article/details/80665083
注意:先创建data文件夹,再执行
./bin/mysqld --initialize --user=mysql --basedir=/home/mysql --datadir=/home/mysql/data
妈蛋 建议在线安装,用yum 这种安装很坑!!!!!!1