I’ve built a media box based on mythtv, built on Opensuse 11.3 32bit (a clean install) and the packman mythtv rpms (0.24.0).
I’m trying to set up mysql, but any attempts to run mysql fail with an ‘access denied’ error.
mythtv@pippin:~> mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mythtv@pippin:~> mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mythtv@pippin:~>
I have not created a root password for mysql - I can’t gain access to even do that.
I’d really appreciate some assistance to get this sorted.
Well, good that the OP is back with a working MySQL, but the elegant way to do it would have been:
Stop mysqld and restart it with the --skip-grant-tables option. This enables anyone to connect without a password and with all privileges.
Connect to the mysqld server with this command:
shell> mysql
Issue the following statements in the mysql client. Replace the password with the password that you want to use.
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
mysql> FLUSH PRIVILEGES;
The FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.
You should now be able to connect to the MySQL server as root using the new password. Stop the server and restart it normally (without the --skip-grant-tables option).