修改mysql的配置文件,ubuntu下mysql的配置文件存放位置为:/etc/mysql/my.cnf

mysql打开binlog

找到log_bin配置项,指定一个路径:

mysql打开binlog

重启数据库:/etc/init.d/mysql restart

在数据库中进行update, insert和delete操作,会触发binlog:

mysql打开binlog

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-05-01
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-03
  • 2021-12-28
  • 2021-12-18
  • 2022-02-18
  • 2021-12-06
相关资源
相似解决方案