MYSQL : Tuning / Optimizing my.cnf file

Posted by Jiltin     16 August, 2009    23,152 views   

mysql_letters_computer.jpgIn my new server, I Have to do some fine tuning of MySQL 5 and here is what my.cnf file looks like for a 2GHz machine with 12GB of memory.

Below are notes on some of the important variables, I took down while tuning the config file.

1. query_cache_size:
* MySQL provides one feature that can prove very handy – a query cache. In a situation where the database has to repeatedly run the same queries on the same data set, returning the same results each time, MySQL can cache the result set, avoiding the overhead of running through the data over and over and is extremely helpful on busy servers.
2. key_buffer_size:
* The value of key_buffer_size is the size of the buffer used with indexes. The larger the buffer, the faster the SQL command will finish and a result will be returned. The rule-of-thumb is to set the key_buffer_size to at least a quarter, but no more than half, of the total amount of memory on the server. Ideally, it will be large enough to contain all the indexes (the total size of all .MYI files on the server).
* A simple way to check the actual performance of the buffer is to examine four additional variables: key_read_requests, key_reads, key_write_requests, and key_writes.
* If you divide the value of key_read by the value of key_reads_requests, the result should be less than 0.01. Also, if you divide the value of key_write by the value of key_writes_requests, the result should be less than 1.
3. table_cache:
* The default is 64. Each time MySQL accesses a table, it places it in the cache. If the system accesses many tables, it is faster to have these in the cache. MySQL, being multi-threaded, may be running many queries on the table at one time, and each of these will open a table. Examine the value of open_tables at peak times. If you find it stays at the same value as your table_cache value, and then the number of opened_tables starts rapidly increasing, you should increase the table_cache if you have enough memory.
4. sort_buffer:
* The sort_buffer is very useful for speeding up myisamchk operations (which is why it is set much higher for that purpose in the default configuration files), but it can also be useful everyday when performing large numbers of sorts.
5. read_rnd_buffer_size:
* The read_rnd_buffer_size is used after a sort, when reading rows in sorted order. If you use many queries with ORDER BY, upping this can improve performance. Remember that, unlike key_buffer_size and table_cache, this buffer is allocated for each thread. This variable was renamed from record_rnd_buffer in MySQL 4.0.3. It defaults to the same size as the read_buffer_size. A rule-of-thumb is to allocate 1KB for each 1MB of memory on the server, for example 1MB on a machine with 1GB memory.
6. thread_cache:
* If you have a busy server that’s getting a lot of quick connections, set your thread cache high enough that the Threads_created value in SHOW STATUS stops increasing. This should take some of the load off of the CPU.
7. tmp_table_size:
* “Created_tmp_disk_tables” are the number of implicit temporary tables on disk created while executing statements and “created_tmp_tables” are memory-based. Obviously it is bad if you have to go to disk instead of memory all the time.

[mysqld]
socket=/path/to/mysql.sock
datadir=/var/lib/mysql
skip-locking
skip-innodb
# MySQL 4.x has query caching available.
# Enable it for vast improvement and it may be all you need to tweak.
query_cache_type=1
query_cache_limit=1M
query_cache_size=32M
# max_connections=500
# Reduced to 200 as memory will not be enough for 500 connections.
# memory=key_buffer+(sort_buffer_size+read_buffer_size)*max_connections
# which is now: 64 + (1 + 1) * 200 = 464 MB
# max_connections = approx. MaxClients setting in httpd.conf file
# Default set to 100.
#max_connections=200
#interactive_timeout=180
interactive_timeout=100
#wait_timeout=180
#wait_timeout=100
# Reduced wait_timeout to prevent idle clients holding connections.
#wait_timeout=30
wait_timeout=15
connect_timeout=10
# max_connect_errors is set to 10 by default
#max_connect_errors=10
#table_cache=256
#table_cache=1024
# Checked opened tables and adjusted accordingly after running for a while.
table_cache=512
#tmp_table_size=32M by default
#thread_cache=128
# Reduced it to 32 to prevent memory hogging. Also, see notes below.
thread_cache=32
# key_buffer=258M
# Reduced it by checking current size of *.MYI files, see notes below.
key_buffer=128M
# Commented out the buffer sizes and keeping the default.
# sort_buffer_size=2M by default.
#sort_buffer_size=1M
# read_buffer_size=128K by default.
#read_buffer_size=1M
# 1Mb of read_rnd_buffer_size for 1GB RAM — see notes below.
# read_rnd_buffer_size=256K by default.
#read_rnd_buffer_size=1M
# myisam_sort_buffer_size used for ALTER, OPTIMIZE, REPAIR TABLE commands.
# myisam_sort_buffer_size=8M by default.
#myisam_sort_buffer_size=64M
# thread_concurrency = 2 * (no. of CPU)
thread_concurrency=2
# log slow queries is a must. Many queries that take more than 2 seconds.
# If so, then your tables need enhancement.
log_slow_queries=/var/log/mysqld.slow.log
long_query_time=2

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

[client]
socket=/path/to/mysql.sock

Following Google Searches Lead To This Post: tuning my.cnf sort_buffer_size
mysql3 my.cnf slow query
my.cnf missing in centos
mysql optimize ram
my.cnf wait_timeout
ideal wait_timeout mysql php
my.cnf for 256MB RAM
my.cnf generator
mysql wait_timeout optimal
+my.cnf +memory +mysql +5
my.cnf windows performance
mysql my.ini idle timeout
increase the Mysql Memory in /etc/my.cnf file
CENTOS WHERE IS THE FILE my.cnf
mysql long_query_time my.cnf less than 1
mysql 5 my.cnf tune
debian mysql wait_timeout
performance tuning mysql innodb settings on windows server
where is my.cnf centos
my.cnf examples huge
mysql increase mem my.ini
mysql increase memory optimization
Mysql optimize my.cnf centos
mysql optimizing 1gb
mysql optimal query_cache_size
my.cnf 512 mb ram
my.cnf exemple for high load
key_buffer_size 16G RAM
tuning mysql oracle tweaks linux
my.ini my.cnf timeout
optimized my.cnf 5 2gb
fine tune /etc/my.cnf
my.cnf optimization innodb
mysql my.cnf file location mac os x
query_cache_size my.cnf
innodb my.cnf 1G RAM
OPTIMIZE TABLE busy server
redhat mysql tuning recommendations
enable connection logging my.cnf
how to optimize centos
how to improve the performance of mysql in my.cnf
mysql tuning my cnf
optimal wait_timeout mysql setting
my.cnf sample 1 gb ram
centos my.cnf
location of my.conf file on red hat linx
cannot find my.cnf in centos
parameters to configured my.cnf
optimize mysql macosx
wordpress mysql max_connections
how to set parameters for slow query response in mysql.cnf
mysql tuning key_buffer_size 5.0
mysql slow “sorting result”
3GB mysql tune
ou trouver my.ini Redhat5
mysql my.cnf tuning
mysql optimize my.cnf small
my.cnf+Max data file length
my.conf MySQL mac
mysql my.cnf generator
optimize mysql database centos
mysql tunning for large query
fast my.cnf os x
my.ini query timeout
my.ini fine tune
mysql my.cnf query_cache_size
tmp_table_size my.cnf
“my.cfg” mysql
tmp_table_size my.cnf 1G
my.cnf mysql 512m
redhat mysql key_buffer
my.cnf fine tuning
“os x server” mysql change open_files_limit
“os x server” mysql my.cnf
mysql optimize cpu
my.cnf location mac
centos mysql tuning
tuning mysql debian my.cnf
my.cnf location os x
my.cnf faster data loading
my.cnf file optimized
best my.cnf wordpress
my.cnf high memory
best my.cnf file
missing file mysql\my.cnf on windows
tuning mysql on for my huge
mysql 5 my.cnf php
mysql performance tweaking 1gb ram
mysql optimization my.ini
mysql tuning 2GB
my.cnf with 4 cpus
best setting my.cnf in redhat
mysql large table my.cnf
optimizing mysql 5 high load servers
redhat my.cnf path
how to edit my.cnf in mac server
sample my.cnf
solaris mysql “max_connections”
tuning mysql my.cnf
Optimum valu for query_cache_limit in my.cnf
mac my-huge.conf
mysql.cnf sort_buffer_size
MySQL + ramdisk + centos
php read my.cnf
my.cnf myisa tuning
my.cnf path
optimize my.cnf+basedir
sort_buffer_size tuning 4gb
mysql sample config file MyISAM 512 RAM
my.cnf optimizen huge
ideal value for mysql query_cache_limit
mysql my.cnf big
my.conf mysql tunning
large mysql mycnf file
my.cnf sample 512
mysql.cnf performance optimization
my.cnf fast alter table
mysql my.cnf optimization
my-huge.cnf for linux
my.cnf large server
my.cnf and my.cfg
mysql tuning 16GB
optimise innodb settings 4gb ram
my.cnf memory
mysql performance my.cnf large
tuning mysql my.cf
where is my.cnf located wordpress
Mysql+”my.cnf”+file+missing+linux
mysql innodb tuning my.cnf large
config mysql Ram 4G
osx mysql5 example my.cnf
mysql tuning for huge database
windows where is the my.cnf file located
mysql 1GB memory configuraton
my.cnf for 1 gb server
mysql sample my.cnf file
my.cnf file in RHEL5
optimize my.cnf example
mysql optimize 512
sample my.cnf linux
auto my.cnf
change mysql timeouts mac
mysql memory settings tuning
mysql 4G tuning
rhel5 mysql configuration file path
tuning mysql 3GB ram
rhel5 mysql “configuration file”
.my.cnf mac example
CentoS5.4 MySQL server tuning
my.cnf + wait_timeout
optimum query_cache_size
innodb my.cnf centos 5
rhel mysql tuning
how to tune mysql server for high load
mysql performance tuning+ redhat
sample my cnf file for redhat 5
How to create my.cnf on linux
solaris10 my.cnf can not find
mysql Key_writes
fine tuning mysql in windows
how to find my.cnf on linux
innodb my.ini tuning
optimizing my.cnf 8 GB
my.cnf optimizing tool
mysql table_cache my.cnf 2009
optimize mysql memory parameters
centos + my.cnf mysql log
optimize my.cnf 12GB
my.cnf for 12GB
mysql optimization my cnf
mysql optimization 1GB server
optimize mysql result
my.cnf huge files memory setting
mysql tuning thread_concurrency
my.cnf index size
my.cnf big
my.cnf tuning 5.0
centos mysql basedir
MySQL InnoDB my.cf
sort_buffer_size tuning
mysql thread_concurrency Linux
faster index creation mysql key_buffer_size
my.cnf example
my.cnf tuning software script
tunning mysql conf on debian
mysql 5 table_cache RAM
optimize mysql +max_connections
connection problem in mysql + linux + my.cnf
mysql fine tuning thread_concurrency
mysql config example max_connections
mysql cnf for 2GB ram
debian mysql 5.0 performance larger memory buffer
long_query_time my.cnf
configuring mysql on 12 gig server
default location for my.cnf client installation
optimize my.cnf mysql
mysql optimization of setting with server 4gigs
my.cnf 4 gb
my.cfg timeout long query
mysql mac os x thread_concurrency
mysql 5 optimize my.cnf
mysql my.cnf thread_concurrency
mysql key_buffer 16g
mysql create my.cnf
tuning mysql.cnf
my.cnf locations centos
mac mysql .cnf file
default my.cnf file on mac
mac my.cnf file
how to change a .cnf file
my.cnf query_cache_size
how set mysql configuration for big databases regarding memory
key_buffer_size my.conf
my.cnf or my.ini
my.cnf parameters
thread_concurrency MYSQL max
/etc/mysql/my.cnf tunning
optimizing mysql parameters
my.cnf table_cache
php.ini my.cnf
redhat mysql thread_concurrency max
mysql optimization 4gb ram
mysql how to find where my.cnf file is
mysql tuning+mysql.cnf
my.ini table_cache
set table cache in my.cnf
mysql tuning windows
how to look for my.ini file in rhel mysql
mysql my.cnf large 4 gb
rh5 find my.cnf
mysql query timeout my.cnf
“my-huge.cnf”
where my.cnf osx
my.cnf busy site
optimize windows server for mysql
mysql tuning table more 1 gb
.cnf bestand
where is my.cnf located
what should be the ideal values for buffer size in my.cnf linux
my.cnf windows
Mysql query_cache_limit my.cnf
tuning wordpress mysql
my.cnf set execution time
tune redhat for mysql
my.ini debian
my.cnf location macosx
mysql log locations cnf
my.ini rhel5
centos mysql my.conf
optimize my.cnf
increase performance of mysql my.ini mysql 5
index max sort mysql my.cnf
key_buffer_size conf
mysql optimize memory 2gb
mysql macos my.cnf
my.cnf 1gb example
optimize mysql centos
mysql data file location my.cnf
my.cnf 2gb ram
timeout my.cnf
my.cnf 256mb
mysql 5 my.cnf tuning
debian my.cnf optimize
mysql my configuration 32 gig ram
where does my.cnf live
mysql optimal settings for 2gb server my.cnf
linux 4 processors 16G ram mysql not performing
query long update my.cnf
query_cache_size mysql optimal
mysql my.cnf wait_timeout parameter
mysql tuning my.cnf
debian my.cnf
mysql ini large databases
optimize mysql for big databases
mysql 5.0 config file what is key_buffer
find my.cnf
my.cnf for slow machine
innodb my.cnf tweaking
fine tunning mysql for wordpress
mysql performance configuration my.cnf 2GB
path to my.ini centos
change “table cache” mysql my.cnf
оптимальный конфиг my.cnf
mysql optimization cpu my.cnf
centos where is my.conf
mysql my.cnf not loading
MySQL “OS X” innodb my.cnf
optimize slow mysql my.cnf
my.cnf changes 4 to 5
mysql tmp_table_size mycnf default
increasing memory mysql os x big.cf
mysql example cnf innodb 2gb
my.cnf max connection
mysql my.cf
httpd.conf “large mysql”
location of my.cnf in mac osx
mysql.ini parameter file
mysql “interactive_timeout”
mysql “tmp_table_size”
mysql tuning ram
query timeout+mysql tutorial
2gb my.cnf
my.cnf tuning performance howto
optimize mysql tune script “windows”
mysql not reading “.my.cnf”
mysql key_buffer_size 4gb RAM
my.cnf max performance
win32 thread_concurrency
MY.cnf file location on Linux
my.cnf optimization
my.cnf mysql windows
mysql optimization my.cnf
change max_connect_errors
enabling logger for mysql + my.ini
mysql text log my.cnf
location of mysql.cnf in Linux
optimum memory config for mySQL with 3Gb RAM
configure apache mysql 512m ram
mysql idle timeout
mysql tmp_table_size 4gb
change open_files_limit mysql 5.0
my.cfg example
configure my.cnf wait_timeout
my.cnf max_connections
my.cnf key_buffer mysql 5
osx my.cnf mysql
changing mysql settings my.cnf
centos editing my.cnf
tunning mysql.cnf
set mysql connection timeout my.cnf
MySQL repair timeout
mysql unable to set max_connect_errors from my.cnf
tuning my.cf
tune mysql memory centos
configuration log file in my.cnf
mysql timeout my.cnf
how to generate my.cnf
my.cnf tuning tool
mysql “Sorting result” slow
best mysql settings for big sites
mysql performance my cnf
best my.cnf for large databases
centos mysql my.cnf settings
mysql console maximum execution my.cnf
default my.cnf file
my.cnf timeout
buffer my.cnf
my.cnf large database
mysql my.cnf files for large applications
improving “sorting result” mysql
how to edit the my.cnf file in mysql
1 GB ram + MY.CNF
mysql interactive_timeout tuning
tune my.cnf
MySQL my.ini import big files
optimize mysql in the linux server
mysql my.cnf mac path
location of mysql log file on CentOS
wordpress my.cnf
my.cnf +logfile
tuning mysql 12 gb
my.cnf connection timeout
server idle innodb mysql solaris10
OneSearch Glass
my.cnf allocating total amount of ram
increase size in my.cnf
mysql tuning tips + linux
mysql my.cnf huge
mysql 5 optimization my.cnf 2009
apache and mysql tuning
default value thread_concurrency mysql 5ù
Optimize mysql to read large tables
mysql 5 optimization my.cnf 512MB ram
“redhat 5″ 4GB RAM 3GB
my.ini huge database
mysql performance sample my.cnf
mysql.cnf windows
mysql log my.cnf redhat
high performance my.cnf
tunning mysql for 8gb
my-huge.cnf 4gb
optimising mysql for window
optimize mysql database file
default location of my.cnf linux
mysql tuning 4 GB ram
my.cnf log file
my.cnf + 1GB ram
optimal mysql server ini
optimal mysql5 server my.ini
best my.ini settings mysql 5
my-huge.cnf tuning with high performance server
mysql connection time in my.cnf
linux my.ini settings for 2gb ram
where does the .my.cnf file go?
mysql tuning cpu
mysql 5.0 my.cnf logfile
my.cnf max_connections default recommended
mysql fine tuning my.cnf
what is the cnf file in linux
mysql memory my.cnf
key_buffer_size my.cnf
my.cnf create index
mysql 5 performance tuning my.cnf
my.cnf example 4G memory
AVERAGE tmp_table_size mysql
using my.cfg mysql
mysql query timeout my.ini
redhat mysql find my.cnf
table_cache optimize
tuning php mysql for large data
mysql auto tuning
Optimizing my.cnf file for MySQL
mysql interactive_timeout
fine tuning mysql windows
mysql optimization my cnf memory
tuning mysql red hat
php mysql connect .my.cnf
mysql linux thread_concurrency
Fine Tuning my.cnf
my.cnf max_connection on redhat
Tuning / Optimizing my.cnf file for MySQL
optimizing mysql 5 configuration my.cnf
tmp_table_size mysql linux
16GB server tune mysql
my.cnf client configuration example
os x + my.cnf
my.cnf file for soalris +mysql
example of optimized httpd.conf
mysql fine tuning key_buffer
wait_timeout ideal mysql
mysql my.cnf best values
my.cnf 4g
mysql tunning wordpress databse
where is ini file stored mysql mac
mysql my.cfg
my.cnf examples
my.cnf tuning
mysql interactive_timeout default value
mysqld cpu optimize my.cnf
How to optimize the load to MySQL Database
my.cnf optimization cpu 1 gb
mac my.cnf location
increase mysql memory os x
editing my.cnf memory
mysql auto complete my.cnf
my.cnf 4 gigs
my.cnf 16G
query_cache_size mysql 16gb ram
mysql tutorial optimizing
query_cache_size max
log-slow-queries = in your configuration file my.cnf
my.cnf samples
mysql connect timeout my.cnf
cnf apache “my huge.cnf
mysql tuning for windows
my.cfg in mysql on mac
my.cnf mem 4G
how to increase mysql performance from php.ini
optimizing mysql for wordpress
my.cnf index
my.cnf is missing but running mysql
default max_connection in mysql 5.0
my.cnf configuration for memory & buffer
RHEL mysql data file location
mysql.ini example for large companies
tunning linmux with mysql php
mysql idle connection timeout my.ini
maximum optimize mysql
mysql key_buffer_size large tables
optimizing mysql for huge companies
myisam tuning for for 4gb
my.cnf für 4gb
wordpress databases type mysql tunning
key_buffer_size my.cnf mysql 5.0
mysql tuning huge sample
+mysql +”my.cnf” +”wait_timeout” +max +connections
mysql open_files_limit my.cnf
mysql wait_timeout performance
mysql tuning solaris 10 /etc/system
centos mysql config files
mysql my.cnf settings for HUGE database
MySql my.ini connection timeout
my.cnf basedir mac os
my.cnf max time out
centos 5 find my.cnf
my.cnf key_buffer_size debian
my.cnf 8 go
mac os x server mysql max_connections
mysql myisam my.cnf
index my.cnf
solaris my.conf
my.cnf 8gb
mysql my.cnf “[client]” “[mysql]”
mysql optimizing
mysql centos config my.cnf
Mysql 5.0 – Using My.cnf – windows/ Slow-query-log
based RAM size how to configure cnf in mysql
mysql logging my.cnf
enable query_cache_size mysql my.cnf
my.cnf web server example
optimize my.cnf file
max wait_timeout mysql variable
missing my.cnf file
table_cache my.cnf
high performance my.ini
mysql performance my.cnf
mysql buffer optimization
interactive_timeout my.cnf
mysql “connection logging” linux my.cnf
–shared memory my.cnf
mysql memory tuning 12Gb
optimize mysql 5 connections
mysql 1GB tuning
redhat mysql default max connections
query_cache_size + mysql + optimize
como acceder a etc/my.cnf mac
my.cnf large import
mysql memory tuning samples
mysql my.cnf tweak 2gb ram
my.cnf location on windows
query_cache_size high perfromance
centos mysql timeout
my.cnf 1gb ram innodb
mysql connect-timeout my.cnf
mysql mac .cnf
best my.cnf configuration
MySQL InnoDB Performance Tuning for centos
open_files_limit my.cnf
my.cf Fine Tuning
my.ini on linux
fine tuning mysql for a 2 gig machine
mysql my.cnf wait_timeout
mysql optimize default.ini
my.cnf sql logging
wait_timeout mysql optimization
mysql.cnf 4 gb ram
location of my.cnf on solaris
config file osx mysql my.cnf
mysql macos my.ini
mysql my.cnf 4GB ram innodb
recommended my.cnf for big site
mysql table_cache my.cnf
my.cnf tune
centos mysql tunning
mysqld redhat 5 my.cnf
optimize mysql (lots OR large) (RAM OR memory)
mysql tuning my.cnf key_buffer_size
my.ini mysql
centos my.ini location
centos my.ini file location
my-huge.cnf 16Go
optimizing max_connection on mysql
which faster mysql or looking a file
my.cnf example 16Go
my-huge cnf text
mysql not reading my.cnf linux
my.cnf optimize
my.cnf 16gb
wait_timeout mysql optimize
where’s my.cnf file linux
windows+mysql+tmp_table_size+default
macos my.cnf
where is file my.cnf on linux?
linux my.cnf client
mac os my.cnf
tuning mysql from my.cnf
Tuning my.cnf for innodb
mysql my.cfg large server
optimal mysql server configuration my.cnf linux
mysql tmp_table_size
tuning my.conf settings innodb wait_timeout
optimize mysql 12gb ram
mysql settings for 1Gb
optimize mysql my.cnf 4GB
mysql optimize 4gb
mysql 12gb memory
centos5 mysql my.cnf
osx mysql max_connections
query_cache_size 12GB mem
mysql high load setting my.cnf inno
mysql log file my.cnf
mysql memory buffer my.cnf
table_cache my.cnf
mysql tuning large text
where is mysql my.ini in mac os
mysql tuning for high load
my.cnf thread cache
mysql is using to much cpu my.cnf
configuring my.cnf on rhel
optimize my.ini files
“mysql.ini” “max_connection”
idle timeout option linux mysql
tuning myisam_sort_buffer_size
editing my.cnf mac
my.conf red hat
wait_timeout mysql my.cf
mysql idle time parameter
“wait_timeout” my.cnf
example 2gb my.cnf
my.cnf puffer
optimize mysql settings
configure mysql for 16gb ram
mysql install missing my.cnf
linux optimize my.ini
thread_concurrency windows
linux optimize mysql 5.0 my.cnf
mysql centos cannot find my.cnf location
tool mysql “my.cnf” generator
mysql high memory ini example
interactive_timeout tuning
my.cnf location linux
centos my.cnf query_cache_size=
mac default location my.cnf
centos my.cfg/my.ini
script my.cnf
mysql change key_write
my.cnf max time
.my.cnf example
wordpress db tuning slow queries
mysql missing my.cnf
optimize 5.0 my.cnf
optimized config 5 mysql
sample my.cnf files for mysql
my my.cnf Gig
parametrer my.cnf mysql5 max connection
mysql mac performance tuning
cannot edit my.cnf mac osx
my.cnf file location in centos
settings for my.cnf
solaris 10 + mysql value for key_buffer_size
mysql tunning large database
mysql my.cnf with 2gb ram
mysql 5 tuning large database my.cnf
higher tmp_table_size in mysql
Best Memory settings for php and mysql on 2gb
path of my.cnf on window
php mysql +wait_timeout optimization
my.cnf 4gb ram
my.cnf key_buffer_size
optimize mysql for 4GB
1gb ram redhat mysql my.cnf create
path of my.cnf file
my.cnf general log howto
redhat my.cnf changes
configurare my.cnf 4 giga
“my.cnf” optimize
mysql +update performance memory table 1GB RAM
where is my.cnf file
mysql sample my.ini for large memory
mysql sample my.ini large memory
mac my.cnf
my.cnf debian 512MB
my.cnf 16 RAM
my.cnf 512 memory
tune mysql cnf
tune innodb my.cnf
mysql tuning my.cnf myisam
performance tuning mysql 5 my.cnf
MYSQL TIMEOUT default my.ini
mysql cnf tuning
query_cache_size my.cnf thread mysql 5
my.cnf centos
how to find my.cnf
tuning mysql on windows
“mysql 4″ disable logs my.cnf
mysql repairs faster my.cnf
tuning mysql thread_concurrency
mysql optimal configuration linux my.cnf
macosx my.cnf
How to set timeout parameter in mysql 4
mysql config 16 gigs memory
mysql5 tuning connection timeout
optimize mysql and php on centos 5
execution time mysql my.cnf
mysql key_buffer_size my.cnf
/etc/mysql/my.cnf in Centos
huge database my.cnf optimize
mac mysql tuning
mysql tmp_table_size configuration
my.cnf high performance
my.cnf table_cache 512M
wordpress mysql tuning
where can i find my.cnf file in mysql
mysql sample my.cnf 4GB
how to change query timeout in my.cnf
redhat my.cnf
increase mysql timeout in my.cnf
my.cnf and log files
mysql.cnf on solaris
centos mysql max file size
optimal mysql query_cache_size
optimize mysql “my cnf”
path my.cnf mysql5.1
mysql better configuration example for 16GB server
query_cache_limit my
mysql log enable in my.cnf using windows
mysql fine tuning 2gb
my.cnf high load
my.cnf max execution
solarismysql ini file
centos config query_cache_size mysql
configuration mysql my.cnf multithread
long_query_time my.cnf ?
wait_timeout mysql my.cnf
mysql log my.cnf example
performance my.cnf 2g ram
оптимальные настройки [mysqld] 5 my.cnf
auto optimize mysql queries
fast mysql ini
optimizing my.cnf high performance
mysql tuning read_rnd_buffer_size
optimize my.ini for large tables
mysql idle timeout php
mysql configuration 12gb
my.cnf and optimise mysql for max connections
my.cnf and myslq 5 and optimised
my.cnf + location
mysql configuration for auto-repair
windows mysql tuning
mysql sort file location
mysql max execution my.cnfTine
how to make a .my.cnf file
my.cnf missing windows
optimize mysql + 4G RAM
mysql and change my.cnf file
optimize my.conf for memory
mysql wordpress cnf optimize
mac mysql my.cnf
mac my.cnf default path
apache mysql tuner tool
set up mysql my.cnf optimize for innodb
my.cnf best performance
optimizing mysql for 512mb my.cnf
set my.cnf path
my.cf innodb optimize 2gb
edit my.cnf on os x
my.cnf wait_timeout optimal
my.cnf inno buffer
query_cache_limit my.cnf
large database my.cnf key_buffer
my mysql tuning
mysql my.cnf innodb high performance
innodb in my.cnf for 4gb ram in MYSQL
MySQL: Tuning the configuration file
mysql best my.cnf file
tune mysql my.cnf
how to change my.cnf in mysql
how to tune mysql database for large size database on centos 5
mysql my.cnf tutorial changing variables
where i will found my.cnf file in windows
my.cnf for huge tables
optimize mysql centos 5
my.cnf file missing on debian
sample my.cnf file
mysql my.cnf default example
mysql wait_timeout my.cnf
mysql 5 my.cnf sample
recommended my.cnf tuning
my.cnf buffer mysql.server
how to optimize mysql query for big database
my.cfg ~/.my.cnf
my.cnf high cpu load
mysql 5 optimize large my.cnf
mysql 5 optimize 4gb my.cnf
“tunning mysql in windows”
mysql log file location cent
open my.cnf in mac
mysql server 8gb ram my.cnf config
mysql my.cnf allocate more memory
my.cnf large file support
my.cnf 1gb ram
optimize my.conf
tuning mysql windows big tables
my.cnf innodb gigs
php5 mysql5 tuning
located my.cnf mac
tuning my.cnf
mysql my.cnf parameters
mysql 5 my.ini high performance
mysql optimization my.cnf 8gb
mysql tuning query_cache_size
optimize mysql config for loading data
my.cnf connect-timeout
mysql config 16gb ram
fast my.cnf
innodb with my.cnf
where my.conf redhat
Optimal MySQL-configuration (my.cnf)
apache optimize my.cnf
tuning mysql interactive_timeout
centos mysql configure optimize
ysql.cnf 4BG mamory
mac mysql my.conf where
how to change wait_timeout in mysql in linux
mysql my.cnf ” solaris”
mysql query_cache_size rules of thumb
mysql optimize for huge load in windows
betst wait_timeout value in my.cnf
innodb+mysql+optimized settings+my.cnf
my.cnf connection log
my.cnf 8GB ram
mac os mysql my.cnf
wait_timeout in my.cnf
my.cnf 8 GB ram
mysql optimization settings my.cnf
optimize my.cnf for large mysql
mysql going slow 512M RAM
my.cnf buffer_size parameters linux
MySQL InnoDB Performance Tuning for redhat
sort_buffer_size my.cnf example 4GB
my cnf tuning
4gb machine my.cnf
optimizing mysql connections
mysql performance tune my.ini
mysql innodb performance tuning ini file
my.cnf very huge server
my.cnf very big server
my.cnf very big server x mb
very huge my.cnf
my.ini setting for restore 1gb db
how to create my.cnf on os x
mysql configuration file for 8gb
optimize mysql my.cnf ram thread_cache
mysql high performance my.cnf
mysql connections my cnf
best my.cnf
how to setup two mysql my.cfg
mysql.cnf lost
mysql tune general log
mysql wordpress my.cnf
sample my.cnf for large server
optimizing mysql my.cnf 12GB
my-huge.cnf example 1G memory
my.cnf optimization 2009
optimizing mysql with my.cnf
mysql indexing my.cnf
wordpress +mysql tuning
mysql my.ini optimize response time
location my.cnf configuration file on debian
my.cnf cpu
MySQL set Maximum execution time Linux My.cnf
mysql on 512 server optimization
tune mysql large tables memory
mysql5 my.ini huge sample
mysql my.cnf large tables
myisam tuning lots of ram
mysql my.cnf 2GB RAM
edit my.cnf in mysql console
query_cache_size optimal
my.cnf for very huge database
my.cnf key_buffer
mysql optimize 3gb table
fine tuning mysql my.cnf innodb
mysql + osx + log file + my.cnf
mysql general query log my.cfg
tuning mysql servidor 4 GB
windows mysql caching my.ini
mysql +tuning +1 gig
+mysql +thread_concurrency +WINDOWS
my.cnf huge optimization
innodb performance settings 2gb ram mysql my.cnf
mysql innodb performance tune settings 2gb ram my.cnf ideal
MySQL: How to optimize configuration?
missing cnf files mysql
windows my.ini optimize
my.cnf 2GB
optimizing my.cnf 512mb
mysql:how to optimize configuration file variables
mysql tuning
my.cnf in centos
sample my.cnf windows
mysql5 8go ram
my.cnf large log_slow_queries
4gb my.cnf
mysql5 my.conf optimization
how can i change the values in my.conf file in mysql
mysql my.conf mac osx missing
my.cnf mac
mysql performance tuning my.cnf
centos httpd optimization 512 MB RAM
my.cnf 4gb server
tmp_table_size mysql optimum
mysql tuning wait_timeout
mysql cnf tweak
redhat mysql max_connection
fast mysql tuning tune
.my.cnf OS X missing
Mysql + Debian + tuning
my.conf big mysql server
my.conf for a server with 4Gb memory
optimizing mysql import data quickly mac settings
my.cnf max_connections maxclients
mysql my.conf mac
my.cnf mysql how to set amount of ram memory
Fine Tuning my.cnf 2GB ram
optimize mysql one large table cnf
tune mysql ram
mysql logs + my.cnf
mysql tuning for large database import
fine tuning my.cnf in centos
mysql my.cnf index
mysql log file my.conf
mysql connection timeout my.ini usage
optimised my.cnf settings
mysql5.1 parameters in my.cnf interactive – timeout
mysql5.1 parameters of my.cnf interactive – timeout
mysql optimize wordpress 2gb
the best my.cnf for 4gb of ram
mysql my.cnf settings win32
optimisation my.ini mysql 4 Key_buffer_size
how to mysql tuning 16G Memory
my.cnf location
mysql tuning ini file
my.cnf for wordpress 1 gb
my.conf 8G memory
tune mysql parameters 8GB
.cnf file + oracle
mysql os x where is my.cnf
mysql cnf 16gb RAM
performance “my.cfg” mysql
auto repair my.ini
optimization of mysql my.cnf file
mysql my.ini timeout settings
my.cnf 256MB ram memory configuration
cannot edit my.cnf macosx
optimum my.cnf 16gb server
where my.cnf file is located
optimize my.cnf debian
tune mysql fast
optimizing my.cnf osx
mysql default idle time my.cnf
debian my.ini large 5
mysql max_connections my.cnf
optimize centos server mysql5
example optimised my.cnf mysql5
my.conf 1gb
ideal my.cnf
faster my.cnf
cached reads tuning centos
high performance mysql centos
my.cnf innodb 8 gigs
mysql + show configuration my.cnf file
my.cnf sql memory
mysql my.cnf file path in solaris
optimize my.cnf for large database
my.cnf for 2GB RAM
optimize apache php mysql 2009
mysql memory tuning 4gb ram
osx optimize my.cnf
tuning my.cnf mysql 5
to make changes to the cnf file on mysql
my.cnf file location in windows
mysql tuning red hat
mysql my.cfn mac osx
my.cnf example huge
mysql my.cnf for high load
find my.cnf on mac
optimize my.ini
how to optimize php.ini for database
os x mysql cnf
mysql 4 no my.cnf
tuning my.cnf shared server
8gb ram my.conf
my-huge.ini tunning
tuning mysql my.cnf wait_timeout
make my.ini faster
mysql my.cnf maximum execution time
my.cnf for large site
mysql tuning for 512 mb ram
how to create my.cnf file
mysql os x my.ini
tuning mysql os x server
tweak my.cnf mysql 5
tweak mysql settings on mac
tuning table_cache 4gb server
best mysql settings for 2GB machine
myisam_sort_buffer_size mysql tune
how to increase buffersize in my.cnf?
where my.cnf is located in mac os x
mysql tuning key_buffer_size
mysql my.conf execution timeout
tuning my.cnf on 4GB ram
optimize mysql my.cnf
sample my.cfg windows
configuration mysq my.ini 16gb
wait_timeout parameter in mysql my.cnf
redhat mysql my.cnf
mysql change cache size my.cnf mac
my.cnf 12GB RAM
my.cnf optimize 512mb
location centos my.conf default
example my.cnf for 512 MB
config mysql ini tuning
mysql my.cnf maximum perfomance example
where to add wait_timeout in my.conf
max_connections mysql recommendation “high load”
windows mysql tune /3GB
tuning mysql 2 Giga
my.cnf 1G ram
mysql tweak wordpress wait_timeout
increase connections in my.cnf
optimal table_cache
mysql tuning GB
mysql thread_concurrency parameter
mysql my.cnf 3gb
where mysql looks for my.cf
MYSQL “MY.INI” tuning
my.cnf example for 5.x
centos optimizing mysql apache
tuning mysql windows
tuning my.cnf mysql
query_cache_size setup my.cnf
optimize mysql 4GB
c#.net optimize mysql connections
mysql my.cnf tuning 2009
mysql myisam tuning read_rnd_buffer_size
my.cnf connect timeout
my.cnf file+mysql
Tuning / Optimizing my.cnf file for MySQL-5
fast mysql.cnf
optimizing mysql max conecction
mysql 5 multi threads my.cnf
my.ini centos5
mysql auto repair table my.cnf
my.cnf wordpress
/etc/my.cnf log file
my.cnf 256mb of ram
enable MySql 5 cache my.cnf
mac os my.cnf example
mysql increasing connection timeout my.cnf
mysql tunning
mysql 1 giga ram my.cnf
my.conf optimize for large queries
wordpress +”my.cnf”
MySQL:tools/script to optimize my.cnf
linux my.cnf file path
mysql example cnf 2009
mysql mysqld-bin.0000 my.cnf disk full
mysql sql my.cnf optimize to huge database
my.cnf 12 gb ram
os x path to my.cnf
my.cnf 12 gb of ram
example my.conf mac os x
optimize and yunning mysql on debian 5
php reading my.cnf
lumaxart
4G my.cnf
example optmized my.cnf
mysql.ini example
centos 5 my.cnf
centos mysql 5 optimization my.cnf
table_cache mysql optimize
mysql increasing idle timeout mysql.ini
my.cnf query cache 16 gig ram
my.cnf large server system memory 8gb
mysql large query timeout
my.ini best performance
my.conf faster mysql
my.cnf configuration for a 8gb ram server
my.cnf example 5
mysql edit my.ini
mysql my.conf generator
mysql parameters to set in my.cnf
location solaris 10 mysql.ini
my.cnf 8G memory setting
mysql server optimisation for large data my.cnf
linux mysql 5.0 optimize conf
edit wait_timeout mysql
how to increase the Thread_cache+mysql
create my.cnf file
my.cnf logfile
wait_timeout my.cnf
mysql my.cnf general log
mysql read_rnd_buffer_size
log mysql my.cfg
where is my.cnf windows
query_cache_size max query size my.cnf
mysql max_connections 4gb
mysql 4 performance my.cnf
optimize databases
fine tuning mysql my.conf
myisam_sort_buffer_size “my.cnf”
my.cnf for solaris 10
tuning mysql server 8gb ram
nsis check mysql connection
my.cnf tutorial
how to set big my.cnf
tune my.conf
change my.cnf timeout
solaris my.cnf
mysql.cnf path
idle timeout mysql my.cnf
my.ini linux path
configuring mysql for webserver finetune my.conf
mysql multithread my.cfg
mysql tune for optimize table
max_connections mysql my.ini
my.cnf for 4gb ram
mysql optimize 4GB ram
mysql temporary tables path my.cnf
mysql tuning 4 gb
my.cf mysql
mysql tuning 1gb
fine tuning mysql my.cnf
my.cnf windows location
how to tune a my.conf
16G MySQL ini
16G RAM MySQL ini
16G RAM MySQL configure
optimize mysql server tweek
recommended settings for my.cnf 2009
timeout + my.cnf + linux
high performance mysql config my.cnf
table_cache query_cache_size my.cnf
myisam max sort file size 16gb
how update table_cache on mysql
mysql my cnf log memory
optimizing innodb my.cnf
osx mysql tuning
optimize mysql 5 my.cnf
how to optimize mysql for high load windows
mysql my.conf buffer
my.cnf osx
mysql query_cache_size RAM size
/etc/my.conf memory increat performance

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : MySQL, Web & Scripts Tags : ,

Comments
October 28, 2009

I am using mysql Ver Mysql 5.0.58 with CentOS OS, how to set buffer memory? thanks

Posted by Kanghari
October 28, 2009

You just need to edit my.cnf and restart the mysql server. Here are some settings that you may need to look into.

sort_buffer_size = 32M
read_buffer_size = 32M
read_rnd_buffer_size = 32M
record_buffer = 32M
join_buffer = 32M

Posted by Jiltin
February 1, 2010

Greetings,

I have a Mysql server with 24 Giga RAM. bellow th configuration of my.cnf, but i have problems with my server. can you give me the good configuration knowing that

Max_used_connections ~ 8000.
Status ~ 8000.

bellow the actual configuration:
===========================================================
max_connections=8000
max_connect_errors=10000
safe-show-database
thread_cache_size = 64
key_buffer_size = 1024M
query_cache_size = 64M
query_cache_limit = 256M
max_heap_table_size = 512M
tmp_table_size = 2G
key_buffer = 1G
max_allowed_packet = 16M
table_cache = 6144
sort_buffer_size = 64M
join_buffer_size = 4M
net_buffer_length = 8K
read_buffer_size = 2M
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 512M
wait_timeout = 60
interactive_timeout = 600

# InnoDB settings
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
set-variable = innodb_log_files_in_group=2
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

# Logging
log = /var/log/mysql.log
long_query_time = 4
log-slow-queries = /var/log/mysql-slow-queries.log
log-queries-not-using-indexes= /var/log/mysql-non-indexed-queries.log
expire_logs_days = 1
#——————————————————————————#
[mysqldump]
quick
max_allowed_packet = 16M

#——————————————————————————#
[mysql]

#——————————————————————————#
[isamchk]
key_buffer = 20M
sort_buffer_size = 128M
join_buffer_size = 128M
read_buffer = 8M
write_buffer = 8M

#——————————————————————————#
[myisamchk]
key_buffer = 20M
sort_buffer_size = 128M
join_buffer_size = 128M
read_buffer = 8M
write_buffer = 8M

======================================================

Need help

Thanks

Posted by djamel
March 1, 2010

I have PIV machine with 1 GB RAM i am getting same error my my.cnf file are given bellow please guide how can i resolve same issue max_allowed_packet error

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

max_allowed_packet = 64M

Its urgent plz quite me

Posted by Tahir
Leave a comment

(required)

(required)