MySQL commands
List all users in the current MySQL server: SELECT User, Host FROM mysql.user; Remove a user from the server: DROP USER ''@''; Remove all binary logs: RESET MASTER; Delete all binary logs but keep a week worth of logs: 1 $ mysql --verbose --execute="PURGE BINARY LOGS BEFORE '`date …