Jump to content
  • 0
Sign in to follow this  
* Blaze *

How to change MySQL Password/phpmyadmin Linux

Question

 

If this is the first time you have logged into your server through this manner, you will be prompted to accept the identification of this server. Once you do this and are logged in, perform the following commands to reset the administrator password.

 

Step.1

#service mysqld stop

phyton_zpsc0beafaa.png

 

Step.2

#/usr/bin/mysqld_safe --skip-grant-tables &

phyton_zpsb6925c23.png

 

This starts the MySQL daemon in the background and skips the authentication mechanisms.

 

Step.3

#mysq

 

phyton_zps83864ece.png
 

Step.4

#use mysql;

phyton_zps863c4b08.png

 

Step.5

#update user set password=password('newpassword') where user='root' and host='localhost';

phyton_zps67d3af49.png

 

 

Step.6

#flush privileges;

phyton_zps95f0cf87.png

 

Step.7

#quit

phyton_zpsa0aaf6fc.png

 

 

Step.8

#service mysqld stop

phyton_zpsbb4647e9.png

 

Step.9

#service mysqld start

phyton_zpsec74b446.png

 

Step.10

#exit

Untitled_zpsf2c76b6f.png

 

Dev Blaze ™ 

Edited by Dev Blaze�™

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.