

免费资源网 – https://freexyz.cn/
目录1.查看安mysql容器状态2.进入容器内部3.登录mysql数据库4.查看binlog日志是否开启,查看后关闭mysql5.编辑配置文件开启binlog,设置log文件6.退出容器7.重启mysql容器,且查看是否启动成功8.查看binlog 日志状态是否开启9.查看日志
1.查看安mysql容器状态
docker ps
2.进入容器内部
docker exec -it 4ae9238c176a /bin/bash
3.登录mysql数据库
mysql -uroot -p123456
4.查看binlog日志是否开启,查看后关闭mysql
查看:show variables like log_bin;
关闭:exit
备注:ON开启日志,OFF关闭日志
© 版权声明
THE END
★喜欢这篇文章吗?喜欢的话,麻烦动动手指支持一下!★
相关推荐
暂无评论内容