红联Linux门户
Linux帮助

mysql打开binlog

发布时间:2016-08-29 15:29:57来源:linux网站作者:justinzhang
修改mysql的配置文件,ubuntu下mysql的配置文件存放位置为:/etc/mysql/my.cnf
mysql打开binlog
 
找到log_bin配置项,指定一个路径:
mysql打开binlog
 
重启数据库:/etc/init.d/mysql restart
在数据库中进行update, insert和delete操作,会触发binlog:
mysql打开binlog
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23720.html