I'm trying to do some queries, but I don't have any privilege whatsoever. I can't understand why - it seemed to be working fine just a few weeks ago.
When I log in as 'root' with superuser (sudo mysql -u root -p
) I still don't have any privileges and get error 1227
while trying to create an "admin
" user.
When I login normally I end up with an anonymous user ''@'localhost'
, and don't have any privileges also.
I only have the Information_Schema database (and test), and using Sequel Pro I can see the USER_PRIVILEGES
table, with only the anonymous user and with USAGE
privileges only.
I'm basically stuck I can't do anything with my databases. I've read thousands of posts, but just can't seem to find an answer.
Tried the SELECT USER();
and then GRANT ALL *.*
but I also get access denied.
Basically, I've been getting error 1044 and 1227 constantly.
Any idea on how to make a admin user with all privileges possible? MariaDB is installed on my personal computer (MacOSX), so I would like to have all possible accesses.
Thanks a lot
EDIT: When stopping server with mysql.server stop
and trying to skip tables with: mysqld --skip-grant-tables
I go into an infinite loop of:
[ERROR] InnoDB: Unable to lock ./ibdata1 error: 35
[Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files