Optimize MySQL on a Large Database Server
On a large server which run primarily MySQL service only, the first step you should take is to copy the proper config file which is already optimized for large systems:
$ mv /etc/my.cnf/my.cnf_OLD $ cp /usr/share/doc/mysql-server-5.0.44/my-huge.cnf /etc/my.cnf
I’m using 5.0.44 version here on a CentOS 5.2 box. You need to adjust path as per your mysql version.
Next, find out which database engines you are NOT using, you should disable them in config file. For example,let’s say all of our tables are in MyISAM format only, so we can safely disable InnoDB and BDB engines, add following statements in the [mysqld] section of /etc/my.cnf file: