how to make mysql server run faster

Mobile
feeds
Welcome Login | Register

how to make mysql server run faster
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » MYSQL Forums
        » » how to make mysql server run faster
how to make mysql server run faster
Post Description: this short tutorial will show you how what you can do to make your mysql database server perform and run fast or faster MYSQL
Post Tags:
This Post Has Been Viewed 19 Times Since Fri Jan 02, 2009 10:57 pm Author wallpaperama with 0 replies
how to make mysql server run faster
Advertise On This Page




how to Optimize mysql server

lately i've been getting notices from nagios about my current load on my linux system. and looking at the logs, it looks like the problem is the mysql server.

the server that i have had 2G of memory, so i upgraded to 4G of memory, while i do see some improvements, i still see that mysql server is taking alot of resources from my server. sometimes up to 145% with two CPUs, which normally mysql uses about an average of 45% CPU. so the next step you can do is change your /etc/my.cnf

there is a file in /usr/share/doc/mysql-server-5.0.45 and its called my-huge.cnf so what you can do is replace /etc/my.cnf wiht /usr/share/doc/mysql-server-5.0.45/my-huge.cnf

now bare in mind that my server has version 5.0.45 so your's might be different, but you will most likely find it in 5.0.45 /usr/share/doc/. i have fedora core.

so this is how i did it: first login to your shell and send these command:

make a backup of your original file:
cp /etc/my.cnf /etc/my-original.cnf


replace the origianl file with the huge
cp /usr/share/doc/mysql-server-5.0.45/my-huge.cnf /etc/my.cnf


when asked:
cp: overwrite `/etc/my.cnf'?


type "y" for yes

now restart your mysql server:
/etc/init.d/mysqld restart


thats it.

if anyone has other good tips on how to maker your msyql server perform faster and better, please give me your comments, i would really appreciate it.





Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : how to make mysql server run faster

Comments and replies About how to make mysql server run faster
(0) Comments