I installed mysql5 following some pretty decent directions on lamphowto.com and it seemed to work just fine - no errors or complaints. And when I first tried to start it up it worked fine
Code:
nimbus:~ # /etc/rc.d/init.d/mysql start
Starting MySQL .. done
nimbus:~ # /etc/rc.d/init.d/mysql stop
Stopping MySQL .. done
Then i tested mysqladmin (which worked) and used it to set the root password started mysql and tried to log in as root
Code:
nimbus:~ # mysqladmin version
nimbus:~ # mysqladmin -u root password pa$$word
nimbus:~ # /etc/rc.d/init.d/mysql start
Starting MySQL done
nimbus:~ # mysql -u root -p
Enter password: pa$$word
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I was pretty sure I didn't just forget the password because it was still in plain print on the terminal screen, but I followed some directions from netadmintools.com/art90.html to reset the root password because it was the only thing I could think of.
Code:
nimbus:~ # killall mysqld
nimbus:~ # /etc/rc.d/init.d/mysql start --skip-grant-tables --user=root
Starting MySQL done
nimbus:~ # mysql
mysql> USE mysql
Database changed
mysql> UPDATE user
-> SET password=password("pa$$word")
-> WHERE user="root";
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
this didn't work either and now I can't even start mysql normally
Code:
nimbus:~ # /etc/rc.d/init.d/mysql start
Starting MySQL................................... failed
nimbus:~ # /etc/rc.d/init.d/mysql start --skip-grant-tables --user=root
Starting MySQL done
the last thing i did was run [mysql source dir]/scripts/mysql_install_db again to see if it would reset things & wash away my problem. It did reset the user table at least, but I still can't start mysql normally.
Does anyone have any suggestions for me?