Professional Documents
Culture Documents
1. /etc/init.d/mysql stop
2. mysqld_safe skipgranttables &
3. mysql u root mysql
4. update user set Password=PASSWORD('mynewpassword') WHERE
User='root';
5. exit
6. fg
optimasi MYSQL performance
1. cd /usr/local/bin
2. wget http://mysqltuner.pl/mysqltuner.pl
3. chmod +x mysqltuner.pl
4. /usr/local/bin/mysqltuner.pl
root# vi /etc/mysql/my.cf
[mysqld]
user =mysql
pidfile =/var/run/mysqld/mysqld.pid
port =3306
basedir =/usr
datadir =/var/lib/mysql
tmpdir =/tmp
language =/usr/share/mysql/english
skipexternellocking
keybuffer =16M
maxallowedpacket =16M
thread_stack =128K
trhead_cache_size =8
myisamrecover =BACKUP
table_cache =128
query_cache_limit =1M
query_cache_size =32M
tmp_table_size =64M
max_heap_table_size =32M