MySQL#
Some useful links to explain the concepts of MySQl
Official MySQL Documentation#
Concepts#
Difference between MyISAM and InnoDB Storage engines#
Commands#
1mysql> pager less -SFX
2mysql> SELECT * FROM sometable;
1 SELECT table_schema "DB Name", ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" FROM information_schema.tables GROUP BY table_schema;
Configuration#
https://www.percona.com/blog/2014/11/12/log-rotate-and-the-deleted-mysql-log-file-mystery/
https://blog.oneiroi.co.uk/mysql/mysql-slow-query-log-rotation/
Backing Up | Restore Databases via Command Line#
Configure MariaDB for remote access#
Remove a MySQL user with privileges#
Information on MySQL Bin logs#
Replication (Master-Master)#
Replication (Master-Slave)#
Reset forgotten MySQL password#
Troubleshooting & Log Parsing#
https://www.percona.com/blog/2013/04/18/rotating-mysql-slow-logs-safely/
https://alvinalexander.com/blog/post/mysql/how-show-open-database-connections-mysql
https://www.tecmint.com/mysqladmin-commands-for-database-administration-in-linux/
https://major.io/2008/06/24/mysql-error-1040-too-many-connections/
https://www.digitalocean.com/community/tutorials/how-to-use-mytop-to-monitor-mysql-performance
Check for replication Lags#
Enable various logs via my.cnf or without restart#
Change the value of expire_log_days without MySQL restart#
Tuning & Hardening#
Perl script to analyze system MySQL variables & optimize#
MySQL error codes#
Fix for the ERROR 1396#