Quick Mysql Tips
mysql dump limited data
mysqldump -uroot -pxx dbname dbtable –where=”true order by transactionid desc limit 1″
Logging slow queries
To enable the slow query log, start mysqld with the –log-slow-queries[=file_name] option. Use the mysqldumpslow command to summarize the queries that appear in the log. For example:
mysqldumpslow /path/to/your/mysql-slow-queries.log -t 10
shows you top 10 performance killers.
Lost Password
shutdown [...]
