时间:2021-07-01 10:21:17 帮助过:28人阅读
socket=/tmp/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=/usr/local/mysql/data/mysql.log
pid-file=/usr/local/mysql/data/mysql.pid
到这一步其实就已经做完了,后面的都是起服务跟优化
11. [root@bogon mysql]# ./support-files/mysql.server start
12 . [root@bogon mysql]# netstat -anpt |grep 3306
13. [root@bogon mysql]# cp support-files/mysql.server /etc/init.d/mysqld
14. [root@bogon mysql]# service mysqld restart
15. [root@bogon mysql]# ./bin/mysqladmin -u root -p password ‘123123‘
16. [root@bogon mysql]# ln -s /usr/local/mysql/bin/* /usr/local/bin
17. [root@bogon mysql]#service mysql restart
二进制安装mysql
标签:rar emd restart base 重新定义 ini 软件 safe apr