• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue WordPress cloning attempt fails with 'mysqlcheck: Got error: 1045'

Steg

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Obsidian 18.0.50.2
I'm trying to clone a site into a new subdomain and am getting the following error:

Code:
mysqlcheck: Got error: 1045: Access denied for user 'xxxx'@'localhost' (using password: YES) when trying to connect

I wasn't able to locate any threads or KB articles on this. Anyone got any ideas?
 
I could not find anything specific on this situation, but recently there have been some threads that discussed issues when "skip-name-resolve" in /etc/my.cnf was on, because in that case "localhost" cannot be resolved to "127.0.0.1", and if the necessary permission sets in the "user" table of the database are missing for "localhost" as a name, but only refer to "127.0.0.1", access will be denied. You can test if it works by setting "skip-name-resolve = 0" and restarting the database afterwards. If it works, fine, if it does not work, revert to the previous setting.
 
Looks like the main file is actually in /etc/mysql/. However, I don't see skip-name-resolve in any of the .conf files.
 
Could you please add skip_name_resolve = off to my.cnf and restart the database? Does the issue persist?
 
Anyone got another theory?

Would it be easier if I had the client submitted an official support ticket?
 
Yes, please. It has something to do with permissions, but if it is not the host name resolution, it needs to be checked on the server what it is.
 
Back
Top