Hello im trying to learn mysql, im currently following some instructions from a mysql book I have.
I originally had MySql installed the other day and was playing around with the password, since then i have reinstalled MySQL. Now im trying to set a root user password. To do so I have done the following steps.
Firstly, I went into command prompt and went into the mysql\bin directory
I then entered the command:
mysqld
to start the server and received no error messages it just went to the next line of the prompt:
C:\mysql\bin>
Next I changed the password to “password” for the root user, using:
mysqladmin -u root password "password"
Just like before I received no error message, it just went to the next line of the prompt:
C:\mysql\bin>
To ensure MySQL registered this change, I entered:
mysqladmin -u root reload
Just like before I received no error message, it just went to the next line of the prompt:
C:\mysql\bin>
Where im having a problem is when I try to test my password by asking mysql for its current status:
mysqladmin -u root -p status
I am given the following prompt:
Enter Password:
If I enter the password I have previously set: password
I get the following error message:
Mysqladmin: connect to server at ‘localhost’ failed
Error: ‘Access denied for user: ‘root@127.0.0.1’ (Using password: YES)’
from the error message i assume it is thinking im trying to log in with the wrong password.
Just wondering why this is occuring and if anyone has any solutions, suggestions!
Any help appreciated
Thanks!
Justin
I originally had MySql installed the other day and was playing around with the password, since then i have reinstalled MySQL. Now im trying to set a root user password. To do so I have done the following steps.
Firstly, I went into command prompt and went into the mysql\bin directory
I then entered the command:
mysqld
to start the server and received no error messages it just went to the next line of the prompt:
C:\mysql\bin>
Next I changed the password to “password” for the root user, using:
mysqladmin -u root password "password"
Just like before I received no error message, it just went to the next line of the prompt:
C:\mysql\bin>
To ensure MySQL registered this change, I entered:
mysqladmin -u root reload
Just like before I received no error message, it just went to the next line of the prompt:
C:\mysql\bin>
Where im having a problem is when I try to test my password by asking mysql for its current status:
mysqladmin -u root -p status
I am given the following prompt:
Enter Password:
If I enter the password I have previously set: password
I get the following error message:
Mysqladmin: connect to server at ‘localhost’ failed
Error: ‘Access denied for user: ‘root@127.0.0.1’ (Using password: YES)’
from the error message i assume it is thinking im trying to log in with the wrong password.
Just wondering why this is occuring and if anyone has any solutions, suggestions!
Any help appreciated
Thanks!
Justin