MySQL: Difference between revisions

From DWIKI
Line 33: Line 33:


==FAQ==
==FAQ==
===mysql error codes===
http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html
===Fix privileges===
===Fix privileges===
  mysql_fix_privilege_tables
  mysql_fix_privilege_tables
Line 46: Line 50:


===mysqldump: Got error: 1040: Too many connections when trying to connect===
===mysqldump: Got error: 1040: Too many connections when trying to connect===
===mysqldump: MySQL server has gone away (2006)===
seems related to max_allowed_packet

Revision as of 15:38, 30 March 2009

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

mysql error codes

http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html


Fix privileges

mysql_fix_privilege_tables

mysqldump: out of memory

mysqldump -q


clean up mysql-bin

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


mysqldump: Got error: 1040: Too many connections when trying to connect

mysqldump: MySQL server has gone away (2006)

seems related to max_allowed_packet