Check the uptime of the mysqlserver, it should be greater than 24 hours
mysql> \s;
--------------
mysql Ver 14.14 Distrib 5.1.73, for unknown-linux-gnu (x86_64) using readline 5.1
Connection id: 47240
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.1.73-cll MySQL Community Server (GPLv2)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 10 days 10 hours 37 min 4 sec <------------check this as it is recommended
Download the script and proceed the steps below
root@cpanel [~]# wget mysqltuner.pl
--2014-07-24 03:10:01-- http://mysqltuner.pl/
mysql> \s;
--------------
mysql Ver 14.14 Distrib 5.1.73, for unknown-linux-gnu (x86_64) using readline 5.1
Connection id: 47240
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.1.73-cll MySQL Community Server (GPLv2)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 10 days 10 hours 37 min 4 sec <------------check this as it is recommended
Download the script and proceed the steps below
root@cpanel [~]# wget mysqltuner.pl
--2014-07-24 03:10:01-- http://mysqltuner.pl/
change the permission to executable permission
chmod +x mysqltuner.pl
perl mysqltuner.pl
chmod +x mysqltuner.pl
perl mysqltuner.pl
check the recommendation and populate the /etc/my.cnf file .
Comments
Post a Comment