Prestashop logo, Visit home page
  • Help Center
  • Bugs
  • Error connecting to the database of your PrestaShop Store

Error connecting to the database of your PrestaShop Store

-

The "Access denied - Link to database cannot be established" error is a common problem faced by PrestaShop e-store owners. This error occurs when a website can not connect to a database.

Database is a crucial part of any website, including e-commerce websites. It stores all information about products, orders, customers and other important data. If your store can not connect to the database, it leads to critical errors that prevent customers from browsing and buying from your online store.

Fixing database connection error

If you are facing an "Access Denied - Link to database cannot be established" error on your PrestaShop store, follow these steps to fix it:

  1. Check the database connection information.
    Make sure the credentials such as username, password, and database name are correct. You can verify this information by accessing the PrestaShop configuration file, which is located in your website's root directory /app/config/parameters.php (or /config/setting.inc.php for versions prior to 1.7)
  2. Check database permissions.
    Make sure the database user has the correct permissions to access the database. Permissions must be set to allow reading and writing of data. You can check permissions by accessing your web host's cPanel control panel.
  3. Check the database connection.
    Make sure the database server is online and accessible. You can use a tool like PHPMyAdmin to connect to the database and check if you can access it.
  4. Check the database server.
    If you have checked all the previous steps and the error persists, the database server may be down. Contact your web host to check if the server is operational and if there are any ongoing maintenance issues.

 

By following these steps, you should be able to resolve the "Access denied - Link to database cannot be established" error on your PrestaShop store.

 

Related Articles

Accessing the cPanel control panel

Accessing the database of your PrestaShop online store

 


Share