mysql开记二进制日志即配置my.cnf中的log_bin参数后无法正常启动,求高手解答!
mysql配置my.cnf中的log_bin参数后无法启动报错:StartingMySQL.TheserverquitwithoutupdatingPIDfile(/[F...
mysql配置my.cnf中的log_bin参数后无法启动报错:
Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/localhost.localdomain.pid).
my.cnf文件如下:
[mysqld]
log_bin= mysql-bin
basedir = /usr
datadir = /var/lib/mysql/
pid-file = /var/lib/mysql/localhost.localdomain.pid
port = 3306
# server_id = .....
socket = /var/lib/mysql/mysql.sock
都是默认配置,本来后面几行都是带#的,我怕它找不到试着加上路径,还是不行,求高手指点
自已给自己解答吧. 查看错误日志,里面显示:
[ERROR] You have enabled the binary log, but you haven't provided the mandatory server-id. Please refer to the proper server start-up parameters documentation 展开
Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/localhost.localdomain.pid).
my.cnf文件如下:
[mysqld]
log_bin= mysql-bin
basedir = /usr
datadir = /var/lib/mysql/
pid-file = /var/lib/mysql/localhost.localdomain.pid
port = 3306
# server_id = .....
socket = /var/lib/mysql/mysql.sock
都是默认配置,本来后面几行都是带#的,我怕它找不到试着加上路径,还是不行,求高手指点
自已给自己解答吧. 查看错误日志,里面显示:
[ERROR] You have enabled the binary log, but you haven't provided the mandatory server-id. Please refer to the proper server start-up parameters documentation 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询