Difference between revisions of "MySQL"

Jump to navigation Jump to search
18 bytes added ,  09:07, 4 February 2014
m
m (→‎Maintenance: Added Remove Old Binary Logs)
Line 315: Line 315:
Make sure that any Slave's are up to date before deleting old binary logs
Make sure that any Slave's are up to date before deleting old binary logs
<source lang="mysql">
<source lang="mysql">
SHOW MASTER STATUS\g                                   # Get current logfile name
SHOW MASTER STATUS\g  
SHOW MASTER LOGS;                                      # Get list of logfiles
PURGE MASTER LOGS TO 'mysql-bin.012344';              # Removes all logs up to the one specified
PURGE MASTER LOGS TO 'mysql-bin.012344';              # Removes all logs up to the one specified
</source>
</source>

Navigation menu