AdrianC
Basic Pleskian
On Plesk 17.5.3 CentOS 7 1705170317.16
I imported some external mysql dump without realizing it also contained queries that altered mysql configurations (users, settings, etc).
When I login to plesk web interface I get this:
Mysql log says
I assume the queries did some damage and I would like at least to reset mysql password so that I can login and export my databases to move to a fresh plesk instalation. I have around 20 databases on this server.
How can I reset the admin password for mysql ? I tried many commands from plesk articles but most of them somehow assume I am already logged in as admin in mysql, e.g
I imported some external mysql dump without realizing it also contained queries that altered mysql configurations (users, settings, etc).
When I login to plesk web interface I get this:
Code:
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
Additionally, an exception has occurred while trying to report this error: Zend_Exception
No entry is registered for key 'translate' (Abstract.php:144)
Search for related Knowledge Base articles
Mysql log says
Code:
170803 21:24:05 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE'
[...]
[ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
170803 21:24:05 [Note] /usr/libexec/mysqld: ready for connections.
I assume the queries did some damage and I would like at least to reset mysql password so that I can login and export my databases to move to a fresh plesk instalation. I have around 20 databases on this server.
How can I reset the admin password for mysql ? I tried many commands from plesk articles but most of them somehow assume I am already logged in as admin in mysql, e.g
Code:
plesk bin database --update-dbuser
SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
exit status 3