• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Accidentally removed permissions from admin@localhost

kyon147

New Pleskian
Server operating system version
18.04
Plesk version and microupdate number
not sure
Hi all!

In an effort to tighten up security on the server, I was auditing mysql users and accidentally removed all permissions from the "admin@localhost" mysql users not realising it was used by Plesk.

Now I can't edit permissions as the other accounts on my server don't have global privileges. How can I reset the admin user to get back into plesk?

Thanks
 
Try to run

# plesk repair db
# plesk repair installation
 
Tried to run both and they both fail.

Trying to backup MySQL database... mysqldump: Got error: 1044: "Access denied for user 'admin'@'localhost' to database 'mysql'" when using LOCK TABLES

ERR [panel] Cannot save cli call statistic DB query failed: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT, UPDATE command denied to user 'admin'@'localhost'
 
I would suggest you contact Plesk Support Team for recovering access to Plesk database directly on your server.
 
Back
Top