/var/log/mysql/mysql-bin.log
Will it re-create?
|
|
If you just move/remove it, you will probably be stuck with an open file handle that keeps getting written to, but you will no longer see the file. This is a binary log, which is used for replication, and you can also use them for things like incremental backups as it keeps a history of all transactions. If you don't want the file there, you have to comment out the my.cnf line that says
Then restart (or reload) MySQL. As long as it isn't actively using it, you are then safe to remove it. |
|||
|
|
|
mysql-bin.log or whatever it is called contains data necessary for replication or recovery. If you are not using replication and your database is intact, you (probably) won't need it and if you remove it and restart mysql it will start filling up again from that point on (without magically restoring the deleted logs, of course). From the docs,
Read the documentation yourself before proceeding. |
|||
|
|
|
It will disappear, and MySQL will probably report errors. It will appear again when you restart MySQL. If you doesn't use mySQL replication it's safe to turn off binary logs: A client that has the |
|||
|
|