change mysql username and password on ec2 lamp
i have a LAMP stack on EC2, installed phpmyadmin then removed it so i can use mysql workbench.
how do i go about changing the username and password for mysql? also if i wanted to add a dev dB, how would i add a new user/pass for that? i found some reference to this but the information i gathered was conflicting. the site is live and i dont want to bring it down. |
Here's some code to list users & grants;
Code:
# call like this |
i keep getting
Code:
command not found |
i thought this would work
Quote:
|
WHICH command is not found?
For my example you only need the mysqlroot passwd, not the OS level root passwd. |
All times are GMT -5. The time now is 10:52 PM. |