Jump to content

Recommended Posts

I am new to the whole server management thing and I am kinda enjoying learning it but definitely need some more knowledge.  I need help optimizing my.cnf file for my server as it seems the mysql isn't running the best it should.  I only have like 11 sites on the server with one being the major traffic site.

 

My server is:

 

CPU: AuthenticAMD, Dual-Core AMD Opteron Processor 2212

Version: psa v8.1.1_build81070423.15 os_FedoraCore 6

OS: Linux 2.6.9-023stab043.1-smp

PHP version = 5.1.6 apache2handler

Webserver = Apache/2.2.3 (Fedora)

Database = mysql 5.0.27-log, lock.system=flock

 

The my.cnf file for the server is currently in its default state and doesn't seem to be handling my sites the best it could.  Here is the contents of the my.cnf file

 

[mysqld]

set-variable=local-infile=0

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

# Default to using old password format for compatibility with mysql 3.x

# clients (those using the mysqlclient10 compatibility package).

old_passwords=1

 

skip-bdb

 

set-variable = innodb_buffer_pool_size=2M

set-variable = innodb_additional_mem_pool_size=500K

set-variable = innodb_log_buffer_size=500K

set-variable = innodb_thread_concurrency=2

log-slow-queries = slow_queries.log

[mysql.server]

user=mysql

basedir=/var/lib

 

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

skip-bdb

 

 

set-variable = innodb_buffer_pool_size=2M

set-variable = innodb_additional_mem_pool_size=500K

set-variable = innodb_log_buffer_size=500K

set-variable = innodb_thread_concurrency=2

 

log-slow-queries = slow_queries.log

 

If someone could please help me figure out what modifications to make to this file to optimize my server I would be greatly appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/51777-need-help-optimizing-mycnf/
Share on other sites

there were some queries in there but I have since optimized them.

 

I have just seen a lot of people working on their my.cnf file and they had a lot of settings in it that I do not have.  I just figured that there were some changes I could make to optimize my server.  Is the one I have fine?

 

Thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.