![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
You may had messed with the database mysql by setting another password for root and users without using mysql PASSWORD() function. |
|
Also PhpMyAdmin had some problem with MySQL 4.1 since they had changed they password length to a longer hash. * Prior to MySQL 4.1, password hashes computed by the PASSWORD() function are 16 bytes long. * As of MySQL 4.1, the PASSWORD() function has been modified to produce a longer 41-byte hash It seem like mysql was compiled to use the old-password way, but the function PASSWORD() create the long password hash. Solution : First you need to reset mysql password, since you have lost root access, fallow this easy step to do it. |
|
Then use OLD_PASSWORD() on a query on the database mysql: UPDATE users SET password=OLD_PASWORD("mynewpassword") WHERE user='myuser' References : http://dev.mysql.com/doc/mysql/en/Password_hashing.html http://dev.mysql.com/doc/mysql/en/Re...rmissions.html Savut http://www.savut.com "Kirk Soodhalter" <newsgroupkirky (AT) sbcglobal (DOT) net> wrote Hi, I set up and configured phpmyadmin a few days ago. It worked well and I built some databases, etc. Then I went to bed. The next day, |
|
-Kirk |
#2
| |||
| |||
|
|
mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! |
#3
| |||
| |||
|
|
Kirk Soodhalter wrote: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! http://dev.mysql.com/doc/mysql/en/Ca...to_server.html |
#4
| |||
| |||
|
|
What I figured out from that page is that even though mysqld says I am starting up when I invoke the start from the command line, it is not really starting up. I am not sure where to go though to diagnose the reason for this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |