You are on page 1of 1

Bagaimana me­reset password root

1. /etc/init.d/mysql stop
2. mysqld_safe ­­skip­grant­tables &
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
pid­file =/var/run/mysqld/mysqld.pid
port =3306
basedir =/usr
datadir =/var/lib/mysql
tmpdir =/tmp
language =/usr/share/mysql/english
skip­externel­locking

key­buffer =16M
max­allowed­packet =16M
thread_stack =128K
trhead_cache_size =8
myisam­recover =BACKUP
table_cache =128
query_cache_limit =1M
query_cache_size =32M
tmp_table_size =64M
max_heap_table_size =32M

You might also like