MySQL

SOLUSI UNTUK LUPA PASSWORD MySQL DATABASE DI SERVER FREEBSD


mysql

Step 1: Non Aktifkan Service MySQL :
root@server#service mysql-server stop
Step 2: Masuk kedalam Direktori /etc/rc.d/ :
root@server#cd /etc/rc.d/
root@server#pwd
/etc/rc.d
Step 3: Melakukan exekusi mysql_safe –skip-grant-table &
root@server#/usr/local/bin/mysqld_safe –skip-grant-table &
mysql
mysql>use mysql;
Step 4 : Update Password User:
mysql>update user SET Password=PASSWORD(‘komeng’)
>where host=’localhost’ AND User=’root’;
Step 5 : Melakukan flush privileges;
mysql>flush privileges;

mysql>\q
Step 6 : Mengaktifkan Service MySQL
root@server#service mysql-server restart
SELAMAT MENCOBA !!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s