Resolve, How to restore mysql admin/root password?

Resolve, How to restore mysql admin/root password? - Hallo sahabat Serba Serbi Dunia Hiburan Dan Info Viral Dunia, Pada Artikel yang anda baca kali ini dengan judul Resolve, How to restore mysql admin/root password?, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan Artikel MySQL, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : Resolve, How to restore mysql admin/root password?
link : Resolve, How to restore mysql admin/root password?

Baca juga


Resolve, How to restore mysql admin/root password?

To day I'm trying to use CMS (Wordpress) in my server. But when i was extracting then i realize that i didn't remember the mySQL password!
Huh... !! How can i use this Wordpress without database?
This problem make me headache. I'm trying to guess the password but it failed. How fool i am, how can i forget the password !!
But i already found solution for my problem. I could use mysql in safe mode to change the admin/root password.

The steps are:
1. First stop your mysql
There are many ways to do this:
  • In Fedora Core : service mysqld stop or /etc/init.d/mysqld stop.
  • In other linux distribution (You can use it in Fedora too): killall mysqld
2. Run this command in your shell:
[root@myhost root]#mysqld_safe --skip-grant-tables --autoclose
This command will make mysql run in safe mode. So it will not prompt any password when you type mysql

3. Follow this step to change your mysql password
[root@myhost root]# mysql
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 3.23.41

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> USE mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> UPDATE user
-> SET password=password("newpassword")
-> WHERE user="root";
Query OK, 2 rows affected (0.04 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit;


*Remember to change newpassword with your password.

4. Then restart mysql
service mysqld restart (directly restart) or killall mysqld (to stop) then start mysql

5. All done, if you can enter with your new password
[root@myhost root]#mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.1.15

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


Demikianlah Artikel Resolve, How to restore mysql admin/root password?

Sekianlah artikel Resolve, How to restore mysql admin/root password? kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya. Profil Perusahaan Dan Lowongan PT Equityworld

Anda sekarang membaca artikel Resolve, How to restore mysql admin/root password? dengan alamat link https://inviralnews.blogspot.com/2017/12/resolve-how-to-restore-mysql-adminroot.html

0 Response to "Resolve, How to restore mysql admin/root password?"

Post a Comment

http://www.ibm.com/links/?cc=us&lc=en&prompt=1&url=//ifknews.blogspot.com/
2. http://canadagazette.gc.ca/gazette/html-interstitial-eng-fra.php?source_pdf=%2Frp-pr%2Fp1%2F2008%2F2008-12-27%2Fpdf%2Fg1-14252.pdf&referer=http://ifknews.blogspot.com/
3. http://espanol.hud.gov/utilities/intercept.cfm?http://ifknews.blogspot.com/
4. http://m.webry.info/portal/exit.htm?url=http://ifknews.blogspot.com/
5. https://su.m.wikipedia.org/w/index.php?title=Husus:ZeroRatedMobileAccess&from=Gambar:Flag_of_Thailand.svg&to=http://ifknews.blogspot.com/
6. http://www.broadbandmap.gov/external-redirect/http://ifknews.blogspot.com/
7. http://www.nixonlibrary.gov/exit.php?link=http://ifknews.blogspot.com/
8. http://georgewbushlibrary.smu.edu/exit.aspx?url=http://ifknews.blogspot.com/
9. http://wireless.fcc.gov/cgi-bin/wtbbye.pl?http://ifknews.blogspot.com/
10. http://www.cfw.tufts.edu/external.asp?http://ifknews.blogspot.com/
11. http://www.dcf.ks.gov/Pages/redirect.aspx?target=http://ifknews.blogspot.com/
12. http://www.ric.edu/assets/pages/link_out.php?target=http://ifknews.blogspot.com/
13. http://www.tc.faa.gov/content/leaving.asp?extlink=http://ifknews.blogspot.com/
14. http://www.transtats.bts.gov/exit.asp?url=http://ifknews.blogspot.com/
15. http://www.nationalcityca.gov/redirect.aspx?url=http://ifknews.blogspot.com/
16. http://www.olelo.hawaii.edu/redirect.php?url=http://ifknews.blogspot.com/
17. http://cherokeecounty-nc.gov/redirect.aspx?url=http://ifknews.blogspot.com/
18. http://staff.ozarks.edu/redirect.asp?url=http://ifknews.blogspot.com/
19. http://wber.monroe.edu/site/html/modules.php?op=modload&name=PostWrap&file=index&page=http://ifknews.blogspot.com/
20. http://www.evansville.in.gov/redirect.aspx?url=http://ifknews.blogspot.com/
21. http://www.hudson.edu/frames.php?school=hcsd&url=http://ifknews.blogspot.com/
22. http://transition.fcc.gov/fcc-bin/bye?http://ifknews.blogspot.com/