|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Okay I see all kinds of tweaking for 4.012 but not a whole lot on 3.23 any things to make sure MYSQL stays on top of its game.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
This is my my.cnf file
#Added by HostDirector Plugin Installer -- Don't remove -- begin skip-networking
#Added by HostDirector Plugin Installer -- Don't remove -- end set-variable = key_buffer=16M set-variable = max_allowed_packet=1M set-variable = thread_stack=128K #log [mysqldump] quick set-variable = max_allowed_packet=16M [mysql] no-auto-rehash [isamchk] set-variable = key_buffer=16M
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
BTW - What version are you running, as you really ought top be on 3.23.56 as earlier versions have big vunerabilities. But I agree yes, I am not sure what is the best set up for it. Hmmm... just looked at mine - and I have virtually nothing in mine - or am I looking at the wrong file? In fact I have none of the settings listed above 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
It is 3.23.56 Yeah it is funny as I was quite shocked as you are too. My my.cnf file is exactly what you see above except I removed the access information  There are so many things one could set or tweak so I thought I would ask the above question. There seems to be alot of tweaks for the new MYSQL for performance enhancement.
|
|
|
|
Joined: Apr 2003
Posts: 10
Newbie
|
Newbie
Joined: Apr 2003
Posts: 10 |
Hi,
at first, you should increase your key buffer. The value should be the size of your MYI files plus 32 MB.
If you need a greater performance, I can tune your my.cnf especially for your server ;-)
So long...
Indy
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
My my.cnf doesn't contain one single line that your does  Mind you just discovered that my httpd.conf had the wrong root in it for files - so none of my htaccess files were working.
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
So, if I have a table that is 1 gig in size and thus has a MYI that is ~ 1 gig I want to have a key buffer that is more than 1 gig?
Picture perfect penmanship here.
|
|
|
|
Joined: Apr 2003
Posts: 10
Newbie
|
Newbie
Joined: Apr 2003
Posts: 10 |
You should run optimize table before. And then you will see the real size used for the index.
And then, if you want to gat a low cache miss rate, you should set this size for your key buffer. But remember, there are more than one tables ;-D
So long...
Indy
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|