A while back I either renamed/replaced the "root" MySQL user with my username, in the name of extra security. Now I can't grant myself access to anything. I just have one user which doesn't have permission to "grant" access to the "mysql" database. So how can I edit users if I can't get into the "mysql" database?
To make matters worse, the only way I can get into the database through localhost is with "/usr/bin/mysqld_safe --skip-grant-tables&" BUT the catch is with "--skip-grant-tables" I can't use the grant command.
Fortunately it's not a catastrophic problem because my application has all the permission it needs to run the website. But I need to get this fixed because sooner or later I'll need full access.
This doesn't work either:
Code:
mysql> create user root@localhost IDENTIFIED BY 'blah';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
Any ideas?