me,myself,english and programming..

MySQL Server Log Maintenance

shell> cd mysql-data-directory
shell> mv mysql.log mysql.old
shell> mv mysql-slow.log mysql-slow.old
shell> mysqladmin -u root -proot flush-logs

On Windows, use rename rather than mv.

Post a Comment