• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

CMAdamadman

New Pleskian
Hello,

I am trying to get a database to link to a site, but whatever I do I cant get them working. I have used MySQL, Postgres, and even browser based databases, but i always get an error when i reload the site. I then tried making tables and importing tables using MyPHPadmin, but i get an error suggesting that I dont have the permissions. So now Im thinking its all related to the same Plesk related permission issues, but Im the only user, so how can I not have the permissions?

If I am in the wrong topic, please direct me to where I should post.

Thanks
 
Hello, its Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in /var/www/vhosts/25bi75bc.example.co.uk/httpdocs/test_db.php:7 Stack trace: #0 /var/www/vhosts/25bi75bc.example.co.uk/httpdocs/test_db.php(7): PDO->__construct() #1 {main} thrown in /var/www/vhosts/25bi75bc.example.co.uk/httpdocs/test_db.php on line 7
 
Last edited by a moderator:
Thank you for the update. Could you please double-check the test_db.php file (or whichever the database config is for your application) and confirm if the database user is correctly defined. It should be the one you see assigned for the database when you navigate to Domains > example.co.uk > Databases > Connection info button in the database card.

What else you might do, is test the credentials defined in your website's config file by executing the following command:

mysql -u db_user -p db_name

Then you'll be prompted for the database password.
 
Back
Top