- Help Center
- Error connecting to the database of your PrestaShop Store
Error connecting to the database of your PrestaShop Store
Updated on May 9th, 2023
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:
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)
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.
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.
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.
Accessing the cPanel control panel
Accessing the database of your PrestaShop online store