Contribute  :  Advanced Search  :  Directory  :  Forum  :  FAQ's  :  My Downloads  :  Links  :  Polls  
AFP548 Changing the world one server at a time.
Welcome to AFP548
Thursday, September 02 2010 @ 07:44 pm MDT
   

my.cnf

TipsWhat a difference a little conf file makes!

So, we here at AFP548.com are by no means DBAs in any way shape or form. We cross our fingers every time we upgrade the server that MySQL works when it comes up. We're not sure what we'd do if it didn't.

We'd been happily living in blissful ignorance of query languages until traffic started picking up on the site. You may have noticed some longer than normal page load times over the last few weeks. Turns out that MySQL was woefully under provisioned since we didn't have an /etc/my.cnf file.

You'll find a few sample ones in /usr/share/mysql. We picked the my-large.cnf and copied it over to /etc/my.cnf and BOY HOWDY! Page creation times are about 300% faster than what they were. This is especially noticeable in the forums. This has got to be the quickest tuning with the most reward that I've ever done.

Now, there's boatloads of variables in these files and I'm not sure what the vast majority of them really are, so enter into this with a bit of caution. YMMV, blah blah blah.

Story Options

Advertising

my.cnf | 2 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
my.cnf
Authored by: ElgertS on Sunday, July 09 2006 @ 08:33 am MDT
Very interesting. I have tweaked the my.cnf files that are created when you use MySQL Administrator (love that tool!), but only when I read articles discussing suggestions on how to improve things. I am never sure how helpful the changes have been since all the sites I manage on various servers are fairly low on traffic.
my.cnf
Authored by: Anonymous on Wednesday, November 22 2006 @ 05:31 pm MST
I've already got the my-large.cnf file contents in /etc/my.cnf and my queries
are still pretty pokie.
Are there any other good, general practice tuning options to speed up my DB
based site?

I've got pretty good upstream bandwidth (768k) and my server is a G4
400MHz with 896MBs RAM. It does mail and file serving duty too. Is it just
that it's underpowered?

Thanks,
David