Home >Database >Mysql Tutorial >windows和linux安装mysql后启用日志管理功能的方法_MySQL

windows和linux安装mysql后启用日志管理功能的方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:26:09927browse

bitsCN.com

查看是否启用了日志

mysql>show variables like 'log_bin';

怎样知道当前的日志

mysql> show master status;


展示二进制日志数目

mysql> show master logs;

看二进制日志文件用mysqlbinlog

shell>mysqlbinlog mail-bin.000001

或者

shell>mysqlbinlog mail-bin.000001 | tail

在配置文件中指定log的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn