Server Optimization

Status
Not open for further replies.

G56Ace

Active Member
264
2008
0
0
Hello, I need help optimizing mysql, however i notice that my my.cnf file is blank. Nothing.
With is probably the reason why my site is slow.
Unfortunately, i have never configured/optimized mysql and this is the part where i need some help.

This the the spec of the server im using.
Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz
Ram: 2GB

Now, what do i need to do to configure mysql, from scratch?
Help is much appreciated!!! :)
 
8 comments
Google is your best friend.
Try searching at google and you will find the solution..

Yeah, like i havent been doing that for the pasts three days... <_<

The following should be helpful: http://blog.highspeedweb.net/2008/07/18/linux-hosting-optimization-slow-query-log-for-mysql/ http://www.linuxweblog.com/tune-my.cnf

Also, once the database has ran for 48hrs+ google for MySQLTuner script (theres 2 well known ones). they will give you an idea on what should be done.

MySQL Tuning can take anywhere from a week to over a month to tune it correctly. If not done right, it is possible to cause a server crash from I/O over use(over tuning).

Thanks! :)
 
I forgot to mention, if you run a heavy DB type of site, you may wish to look into using memcache over the my.cnf as a better way to cache queries ect...

Facebook uses it for all their DB servers, and thanks to their major use of the system, the project has had a lot of development.
 
Thanks Viz0n.
It helped alot.
I also need help Tuning Apache, any tips?
I've never used Apache, I'm a LiteSpeed guy, but look into using mod_proxy or a proxy system like Squid which can cache pages, thus reducing page load time and server load.
 
Status
Not open for further replies.
Back
Top