Cancellare i Log Binary di mysql: Difference between revisions
Jump to navigation
Jump to search
m New page: Se si vogliono cancellare tutti i files di log delle transazioni in /var/log/mysql/mysql-bin.xxxxxxx non cancellarli a mano, ma dalla console di mysql: mysql> reset master; ==Riferimen... |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Per recuperare spazio su disco | |||
== Da Query SQL == | |||
PURGE BINARY LOGS BEFORE now(); | |||
=== Riferimenti === | |||
* [https://www.veeble.org/kb/how-to-clear-or-purge-mysql-bin-log-files/ Delete MySQL logs - How to clear or purge MySQL Bin log Files] | |||
== Old Way (NO) == | |||
Se si vogliono cancellare tutti i files di log delle transazioni in | Se si vogliono cancellare tutti i files di log delle transazioni in | ||
/var/log/mysql/mysql-bin.xxxxxxx | /var/log/mysql/mysql-bin.xxxxxxx | ||
| Line 4: | Line 14: | ||
non cancellarli a mano, ma dalla console di mysql: | non cancellarli a mano, ma dalla console di mysql: | ||
mysql> reset master; | mysql> reset master; | ||
==Riferimenti== | ==Riferimenti== | ||
*[http://dev.mysql.com/doc/refman/5.0/en/reset.html MySQL :: MySQL 5.0 Reference Manual :: 12.5.6.5 RESET Syntax] | *[http://dev.mysql.com/doc/refman/5.0/en/reset.html MySQL :: MySQL 5.0 Reference Manual :: 12.5.6.5 RESET Syntax] | ||
Latest revision as of 16:11, 11 June 2024
Per recuperare spazio su disco
Da Query SQL
PURGE BINARY LOGS BEFORE now();
Riferimenti
Old Way (NO)
Se si vogliono cancellare tutti i files di log delle transazioni in
/var/log/mysql/mysql-bin.xxxxxxx
non cancellarli a mano, ma dalla console di mysql:
mysql> reset master;