Where or how do I check MySQL root password? I don't have a .my.cnf file, I can't login to SQL console (it requires a password), I can't do anything.
|
|
|
There is no way to lookup the password. It is encrypted. On many systems the root password is blank by default. On other systems you would have been asked to set the root password when you installed mysql. The password reset procedure is described here (http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html). |
|||||||||||
|
|
If you manage to get a shell you can set it this way: Start mysql with:
Log in mysql
Update the root password:
|
|||
|
|
|
I think that you may look at your /root/.mysql_history or on your applications web, ... using mysql maybe you will find some useful information there. If you are on a Debian or Ubuntu you could set a new root password like this:
|
|||
|
|
|
You can start the MySQL daemon with
|
|||||
|