mysql配置文件修改
mysql配置文件修改
mkdir –p /data/mysql
chown -R mysql.mysql /data/mysql/
vim /etc/my.cnf
[mysqld]
basedir=/application/mysql
datadir=/application/mysql/data
socket=/tmp/mysql.sock
log-error=/var/log/mysql.log
log-bin=/data/mysql/mysql-bin
server-id=6
port=3306
max_connections=2000
[client]
socket=/tmp/mysql.sock