MySQL: Difference between revisions
From DWIKI
m (→Tuning MySQL) |
m (→FAQ) |
||
Line 45: | Line 45: | ||
http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html | http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html | ||
===separate lines in mysqldump=== | |||
--extended-insert=FALSE --complete-insert=TRUE | |||
===Fix privileges=== | ===Fix privileges=== |
Revision as of 15:38, 3 January 2012
Documentation
- Homepage
- Documentation
- MySQL Tutorial
- MySQL Cheat Sheet
- A collection of mysql commands
- MySQL C API Functions
- MySQL joins
- MySQLForge Wiki
- Common mysql queries
- http://people.freebsd.org/~kris/scaling/mysql.html
- MySQL Replication
Tools
Create a diagram
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
show mysql configuration
show variables
mysql error codes
http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html
separate lines in mysqldump
--extended-insert=FALSE --complete-insert=TRUE
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 File:Example.jpg
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Could be /etc/hosts.allow