Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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 wink at the moment - but expanding all the time....)
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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
Offline
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

Sponsored Links
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 wink at the moment - but expanding all the time....)
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
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
Offline
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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)