mysql is pissing me off tonight. what's with the cryptic error messages? if you don't have permissions for a file, how about saying "i don't have permission to access that file"? how hard is that?
how to reset the root password, for future reference:
as root, create a text file in /etc/mysql, call it mysql-init. put this in it:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('pickAnewPassword');
chown the file to mysql:mysql.
now run mysqld_safe --init-file=/etc/mysql/mysql-init &
probably a good idea to delete the file after. :) and tomorrow, run the fix for the new grant-tables stuff.
i wonder whether the printhead is dry yet.
no subject
on 2006-11-18 17:49 (UTC)safe_mysqld -Sg
-Sg is the same as --skip-grant-tables.
I thought that was interesting. I've never had to recover a password in MySQL before, I always give my users full permissions and a .my.cnf, heh. Also I use postgres now, but that's beside the point.
mysql
on 2006-11-18 21:15 (UTC)Cryptic errors
on 2006-11-19 01:00 (UTC)no subject
on 2006-11-19 17:56 (UTC)no subject
on 2006-11-20 17:39 (UTC)