Hi,
I accidentally deleted admin user, and now can't access the admin panel.
Is it possible to recreate this user with all privileges?
I tried it with skip-grant-tables in my.cnf but getting this error:
Also tried this: Unable to access Plesk on Linux: Access denied for user 'admin'@'localhost' (using password: YES)
Automatic
But still can't access the admin panel
But for some reason I can do this:
I accidentally deleted admin user, and now can't access the admin panel.
Is it possible to recreate this user with all privileges?
I tried it with skip-grant-tables in my.cnf but getting this error:
Code:
MariaDB [mysql]> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost';
ERROR 1290 (HY000): The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement
Also tried this: Unable to access Plesk on Linux: Access denied for user 'admin'@'localhost' (using password: YES)
Automatic
But still can't access the admin panel
Code:
Zend_Db_Adapter_Exception
SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
But for some reason I can do this:
Code:
[root@host tmp]# mysql -u admin -p
MariaDB [(none)]> use mysql;
Database changed
MariaDB [mysql]>
Last edited: