Ch13rY_Blogs

Dont say difficult before you try

Salah Satu Cara Merumuskan Wanita

Ditulis oleh ch13ry di/pada Juni 18, 2008

sumber : http://udanderes.wordpress.com

rumus wanita

Ditulis dalam Personal | 1 Komentar »

Reset mysql root password

Ditulis oleh ch13ry di/pada Juni 18, 2008

Setelah kita mengginstall mysql via console, kita pasti akan mengcreate password sebagai security nya

untuk menjaga keamanan data2 kita. Tapi pada suatu saat ada kemungkinan kita lupa password root nya. ada kemungkinan untuk bisa me reset password root mysql nya untuk alternatif solusi terbaik…

adapun langkah langkah nya :

1. Kill the mysqld that may be running (not with -9):

kill `cat /var/lib/mysql/hostname.pid`

2. Restart MySQL in safe mode:

/usr/bin/safe_mysqld –skip-grant-tables&

3. Connect to MySQL:

/usr/bin/mysql

4. Use the mysql database:

use mysql;

5. Run the update command putting your new password where the ….’s
are. Yes this is all one command:

update user set password = password(’…….’) where user = ‘root’ and
host=’localhost’;

6. Flush the privileges so everything will take:

flush privileges;

7. Then quit mysql:

quit

8. Stop mysql from command line with:

/etc/init.d/mysql stop

9. Restart mysql from command line with:

/etc/init.d/mysql start */

Ditulis dalam Linux, Tips & Trik | Tidak ada komentar »