Home > Database > Mysql Tutorial > MySQL下的00000文件_MySQL

MySQL下的00000文件_MySQL

WBOY
Release: 2016-06-01 14:00:21
Original
1157 people have browsed it

这些东西是数据库的操作日志

  mysql-bin.000001

  mysql-bin.000002

  mysql-bin.000003

  等等好多啊~~~都200多MB了我mysql总数据库加起来都不到50MB

  这些可以清理掉的。 在cmd下进到mysql下的bin目录下

  输入mysql -u root -p然后输入密码

  成功进去后输入reset master;记得这个;啊!

  mysql> reset master;

  Query OK, 0 rows affected, 1 warning (0.20 sec)

  成功了 我的Mysql下的数据库data下顿时少了200MB的垃圾日志文件

  因为本地用根本不需要这些东西所以直接不让它生成就可以了

  在你的mysql目录中有一个my.ini打开它 找log-bin=mysql-bin然后注释掉就可以了

  #log-bin=mysql-bin

  记得在对mysql操作的时候记得关闭mysql服务不然就结束掉mysqld-nt的进程

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template