Home Databases mySql How to change the root password for mySql under Linux in the command line?
 
 
 

How to change the root password for mySql under Linux in the command line?

PDF Print E-mail

Question: How to change the root password for mySql under Linux in the command line?

 

Answer:

You will need to know the current root password in order to change it

In the command line type in and execute the following command 

mysqladmin -u root -pOLD_PASSWORD password NEW_PASSWORD

Replace OLD_PASSWORD with your old password and NEW_PASSWORD with your new password.

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!