问:
如果注释掉 log-bin的话,mysql启动报错
/usr/local/mysql/bin/mysql -u root -p 登陆mysql管理出现
复制内容到剪贴板
代码:
ERROR 2002 (HY000): Can't connect to local Mysql server through socket '/tmp/mysql.sock' (2)
请问如何解决,我的日志已经过4G了
答:
/usr/local/mysql/bin/mysql -u root -p 登录执行:reset master;
如果要禁用日志/etc/my.cnf把
#log-bin=mysql-bin
#binlog_format=mixed
这两行注释掉