Home > Database > Mysql Tutorial > MySQL数据库运行、访问记录与日志

MySQL数据库运行、访问记录与日志

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:33:37
Original
1610 people have browsed it

以下的文章主要向大家介绍的是查看MySQL数据库运行、访问记录与日志的实际操作,我们大家都知道MySQL数据库运行、访问记录与日志的实际应用可以说很是广泛,以下的文章就是对这些内容的详细介绍。 1.首先确认你日志是否启用了 MySQLshowvariableslike'log_bi

MySQL数据库运行、访问记录与日志

以下的文章主要向大家介绍的是查看MySQL数据库运行、访问记录与日志的实际操作,我们大家都知道MySQL数据库运行、访问记录与日志的实际应用可以说很是广泛,以下的文章就是对这些内容的详细介绍。

1.首先确认你日志是否启用了

MySQL>showvariableslike'log_bin';
Copy after login

2.如果启用了,即ON那日志文件就在MySQL的安装目录的data目录下

3.怎样知道当前的日志

MySQL>showmasterstatus;
Copy after login

4.看二进制日志文件用MySQLbinlog

shell>MySQLbinlogmail-bin.000001
Copy after login

或者

shell>MySQLbinlogmail-bin.000001|tail
Copy after login

Windows 下用类似的命令。

498)this.width=498;’ onmousewheel = ‘javascript:return big(this)’ style=”width: 500px; height: 358px” height=”358″ alt=”MySQL数据库” width=”500″ srcwidth=”500″ srcheight=”358″ zoomrate=”1″ src="http://luckyy.net/web%e6%8a%80%e6%9c%af/mysql/”http://images.51cto.com/files/uploadimg/20100528/1055510.jpg” /">

以上的相关内容就是对如何查看MySQL数据库运行、访问记录等日志的介绍,望你能有所收获。

Related labels:
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template