MySQL: Difference between revisions

From DWIKI
mNo edit summary
Line 9: Line 9:
*[http://forge.mysql.com/wiki/Main_Page MySQLForge Wiki]
*[http://forge.mysql.com/wiki/Main_Page MySQLForge Wiki]
*[http://www.artfulsoftware.com/infotree/queries.php Common mysql queries]
*[http://www.artfulsoftware.com/infotree/queries.php Common mysql queries]
*http://people.freebsd.org/~kris/scaling/mysql.html
*[[MySQL Replication]]
*[[MySQL Replication]]



Revision as of 22:23, 10 December 2008

Documentation

Show syntax

http://dev.mysql.com/doc/refman/5.1/en/show.html

Tuning MySQL

In my.cnf check out:

log_slow_queries


On prompt check out stuff like:

SHOW STATUS LIKE '%qcache%;
SHOW GLOBAL STATUS;
SHOW VARIABLES;


FAQ

Fix privileges

mysql_fix_privi­lege_tables

mysqldump: out of memory

mysqldump -q


clean up mysql-bin

purge logs;
purge binary logs to 'mysql-bin.xxxyy';