• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved [Warning] Access denied for user 'username'@'localhost' (using password: YES)

jamster1981

New Pleskian
Server operating system version
ubuntu 22.04
Plesk version and microupdate number
18.0.60
Hi Everyone,

I've already spent lots of time trying to figure this out from various articles but i'm having no luck.

Basically I've done a fresh install of Plesk on my vps, setup a website, added the database via import. PHPMyadmin works fine but whenever I try to load my website internal pages I get this error shown in the Plesk logs.

Can anyone please advise how to fix this.

Thanks
 
Double check if database host, database user, database user password are correctly defined in website configuration. I recently spent way to much time on a similar issue only to discover that there wan an extra space behind te database user name in the in config file om my website o_O
 
Try using "127.0.0.1" instead of "localhost"

had way to much trouble with MariaDB > 10.6 on Debian/Ubuntu lately when using "localhost" (something to do with socket based connections and the "%" wildcard for access restrictions in mariadb no longer covers "localhost")
 
Back
Top