Revision [3871]
Last edited on 2010-10-20 08:53:38 by KenFongAdditions:
# 5.1 # slow_query_log = 1
Revision [3706]
Edited on 2010-05-03 18:57:48 by KenFongAdditions:
log-slow-queries=/var/lib/mysql/slow-queries.log
# 5.1 # slow_query_log_file=/var/lib/mysql/slow-queries.log
# 5.1 # slow_query_log_file=/var/lib/mysql/slow-queries.log
Revision [3683]
Edited on 2010-04-08 18:36:43 by KenFongAdditions:
innodb_log_file_size=32M
innodb_log_files_in_group=3
innodb_log_buffer_size=8M
# see http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/
innodb_log_files_in_group=3
innodb_log_buffer_size=8M
# see http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/
Revision [3677]
Edited on 2010-03-26 00:28:08 by KenFongAdditions:
# default-table-type = innodb
Revision [3604]
Edited on 2010-01-05 21:36:08 by WikiAdminAdditions:
=== Mysql max_connections ===
It can be adjusted while the database is running.
set global max_connections = 200;
It can be adjusted while the database is running.
set global max_connections = 200;
Revision [3526]
Edited on 2009-09-24 02:46:12 by WikiAdminAdditions:
# innodb_doublewrite = no
Deletions:
Revision [3525]
Edited on 2009-09-24 02:18:42 by WikiAdminAdditions:
# skip-innodb_doublewrite
Deletions:
Revision [3524]
Edited on 2009-09-24 02:17:45 by WikiAdminAdditions:
skip-innodb_doublewrite
Revision [3516]
Edited on 2009-09-09 19:11:27 by WikiAdminAdditions:
==Disk contention==
This option tells innodb to commit to disk every second as oppose to every DML. Brings about TPS improvement, but at the risk of changes not committing to disk in case of server issues.
innodb_flush_log_at_trx_commit = 2
This option tells innodb to commit to disk every second as oppose to every DML. Brings about TPS improvement, but at the risk of changes not committing to disk in case of server issues.
innodb_flush_log_at_trx_commit = 2
Revision [2818]
Edited on 2009-07-17 09:50:45 by WikiAdminAdditions:
query_cache_size = 12M
query_cache_limit=2M
skip-bdb
table_cache is related to max_connections. For example, for 200 concurrent running connections, you should have a table cache size of at least 200 × N, where N is the maximum number of tables per join in any of the queries which you execute. You must also reserve some extra file descriptors for temporary tables and files.
query_cache_limit=2M
skip-bdb
table_cache is related to max_connections. For example, for 200 concurrent running connections, you should have a table cache size of at least 200 × N, where N is the maximum number of tables per join in any of the queries which you execute. You must also reserve some extra file descriptors for temporary tables and files.
Deletions:
query_cache_limit=1M
table_cache is related to max_connections. For example, for 200 concurrent running connections, you should have a table cache size of at least 200 × N, where N is the maximum number of tables per join in any of the queries which you execute. You must also reserve some extra file descriptors for temporary tables and files.
Revision [2374]
Edited on 2009-07-09 21:46:22 by WikiAdminAdditions:
thread_cache=32
query_cache_size = 8M
query_cache_limit=1M
query_cache_size = 8M
query_cache_limit=1M
Deletions:
Revision [2284]
Edited on 2009-04-19 23:27:59 by WikiAdminAdditions:
===Baseline config===
open_files_limit=8192
open_files_limit=8192
Deletions:
Revision [2257]
Edited on 2009-03-25 03:12:35 by WikiAdminAdditions:
==[[MysqlSQLTunningExample1 SQL tunning example 1]]==
Deletions:
Revision [2256]
Edited on 2009-03-25 03:12:14 by WikiAdminAdditions:
==[[http://wiki.mysqltuner.com/MySQLTuner#Downloading_MySQLTuner MYSQLTuner]]==
Deletions:
Revision [2255]
Edited on 2009-03-25 03:11:52 by WikiAdminAdditions:
==[[ http://wiki.mysqltuner.com/MySQLTuner#Downloading_MySQLTuner MYSQLTuner]]==
Deletions:
Revision [2254]
Edited on 2009-03-25 03:11:30 by WikiAdminAdditions:
==[[ http://wiki.mysqltuner.com/MySQLTuner#Downloading_MySQLTuner MYSQLTuner]]
Deletions:
Revision [2253]
Edited on 2009-03-25 03:10:55 by WikiAdminAdditions:
==[[MYSQLTuner http://wiki.mysqltuner.com/MySQLTuner#Downloading_MySQLTuner]]
Revision [2177]
Edited on 2009-01-26 09:37:34 by WikiAdminAdditions:
By default, innodb stores data in a single datafile. To make innodb stores table in separate files, enable the innodb_file_per_table option then do the following. This will cause mysql rebuild the table. To move it back to single data file, remove that option and repeat the following.
ALTER TABLE ENGINE=InnoDB;
ALTER TABLE