.:: Blackc0de Forum ::.
Would you like to react to this message? Create an account in a few clicks or log in to continue.

-=Explore The World From Our Binary=-
 
HomeIndeksLatest imagesPendaftaranLogin

 

 Reset Password Mysql (Linux)

Go down 
PengirimMessage
Cardiman
Pro Nubie
Pro Nubie
Cardiman


Jumlah posting : 66
Points : 168
Reputation : 10
Join date : 22.10.11

Reset Password Mysql (Linux) Empty
PostSubyek: Reset Password Mysql (Linux)   Reset Password Mysql (Linux) Icon_minitimeMon Dec 12, 2011 10:24 pm

Forgot root password in mysql? Confused how to reset it? After googling here and there, here I will discuss how to reset root password in mysql. There are two methods or two ways to reset the root password in mysql, and dua2nya I have tried. Ok we directly discuss here ...

First way:

Login as root and stop service mysql :
#/etc/init.d/mysql stop
#killall mysqld



Restart mysql with the - skip-grant-tables
#mysqld_safe --skip-grant-tables &



Log into the mysql shell :
#mysql
mysql>

note: if you can not get into the shell mysql command means there is an error, pleaserepeat the above command in order.

Password reset with the command :
mysql>UPDATE mysql.user SET Password=PASSWORD('yournewpassword') WHERE User='root' AND Host='localhost';
mysql> FLUSH PRIVILEGES;
mysql>QUIT
note: if the command above is true then it will appear 'Query OK ....'

Restart mysql:
# killall mysqld
# /etc/init.d/mysql restart
Finish
Kembali Ke Atas Go down
 
Reset Password Mysql (Linux)
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Reset password Linux
» Reset Password Akun Windows 7
» Cara Reset Password BIOS Laptop
» patch reset admin password pd wordpress
» Instalasi Apache+MySQL+PHP+Perl di Linux

Permissions in this forum:Anda tidak dapat menjawab topik
.:: Blackc0de Forum ::. :: BoarD Blackc0de :: International Room :: Operating system (Int.) :: Linux-
Navigasi: