hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Fine tuning my.cnf MySQL version 4.0.20
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Fine tuning my.cnf MySQL version 4.0.20

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2004, 12:51 PM
rizwan65 rizwan65 is offline
Newbie
 
Join Date: Dec 2002
Posts: 11

Fine tuning my.cnf MySQL version 4.0.20


Hello,

Me fairly new to Linux and MySQL and need help fine tuning my server

My server Specs:
Cel 1.7 Ghz, 512MB RAM, Fedora Core 1, Apache 2.0.50, MySQL 4.0.20, PHP 4.3.8

I have 12 sites hosted on this server all are using PHP and MySQL

I need fine tuning my mysql, apache and PHP

In peak timing I face extremely slow response of the pages using MySQL DB whereas simple html pages opens fine so I think I need my MySQL need optimization.
below is pasted my.cnf of my server


[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

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

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


Please suggest the best and optimized setting for mysql server and any other suggestions regarding apache and PHP will be appriciated

Regards
Rizwan

Reply With Quote


Sponsored Links
  #2  
Old 11-05-2004, 05:20 PM
monaghan monaghan is offline
Web Hosting Master
 
Join Date: Dec 2003
Location: UK
Posts: 652
SQL tuning is not a simple quick fix

You need to look at the queries being run and determine if they could be better written. The default MySQL install should be OK for most things. Quality of the query and lack of correct indexes is usually the biggest problem with any SQL system.

The slow queries log is probably a good place to start.

Have a long read of the mysql.com web site, there's plenty of reading material.

If you want to tune, then you'll need to understand what the database server is being expected to do, then tune to your requirements.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Control Panel cPanel and WHM Version 11.32 Adds Features, Fixes Web Hosting News 2012-04-08 11:51:35
Softaculous Launches AMPPS Installer Version 1.5 Web Hosting News 2012-01-26 16:52:40
Joomla Releases Version 2.5 With SQL Server Support Web Hosting News 2012-01-24 13:34:24
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?