Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Sep 10, 2012 12:24 am 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Hi friends,

I'm trying to follow the instructions here http://library.linode.com/troubleshooti ... networking
to fine tune my linode.
I have been able to do the HTTP part, but I am having issues with the MySQL part.

Firstly, My my.cnf is in /etc/ folder and not /etc/mysql/my.cnf like the linode library article says.

Then my my.cnf contains only the following:

Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


and nothing like

Quote:
key_buffer = 16K
max_allowed_packet = 1M
thread_stack = 64K
table_cache = 4
sort_buffer = 64K
net_buffer_length = 2K


as the tutorials say.

How then can I fine tune my MySQL with to these settings?

Thanks.


Top
   
PostPosted: Mon Sep 10, 2012 2:32 am 
Offline
Senior Member

Joined: Tue Feb 19, 2008 10:55 am
Posts: 164
I'm guessing you're running centos and the docs assume ubuntu
anyway, if a setting is missing from the config, it uses the default.

What I would do is to let the db run for a few days, then download and run http://mysqltuner.pl


Top
   
PostPosted: Fri Oct 26, 2012 8:41 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I installed mysql tuner and I got this


Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 60M)
table_cache (> 64)
innodb_buffer_pool_size (>= 69M)

So I entered /etc/mysql/my.cnf file but not sure what to adjust, what is this > saying to me? and where is mysql max memory usage defined, not one variables but all of these?

these is what i see in my.cnf


key_buffer = 300M
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 20M
query_cache_size = 60M


this inno_db part I done even have? some guidance please.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group