From a root prompt, I cannot access mysql:
#mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I had it working for a while, then it stopped again.
I tried:
cd /var/service/mysqld
sv d .
expand-template /root/.my.cnf
expand-template /var/service/mysqld/set.password
/usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < ./set.password
sv u .
I still get
# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I tried:
cd /var/service/mysqld
sv d .
echo 'use mysql;'>set.rootuser
echo -n 'INSERT INTO user VALUES("localhost","root","",'>>set.rootuser
echo '"Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","Y","","","","",0,0,0);'>>set.rootuser
expand-template /root/.my.cnf
expand-template /var/service/mysqld/set.password
/usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < set.rootuser
/usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < set.password
sv u .
I still can't get in.
Even when I could get in via the shell as root, the web interface would not let me in.
What next?