This topic has 4 replies, 2 voices, and was last updated 1 years, 7 months ago ago by Tony Rodriguez
From the day, i changed my theme to xstore im getting very frequently error “error establishing database connection” this error happens whenever i tries to change anything for eg. uploading a new product, once I publish it gets me an error on front end and backend, once I refresh the page error goes away.
This hasn’t been happening if I switch to different theme. Regarding this i have contacted my hosting there response was
If you switch themes and you are not seeing any errors than it is related to a particular theme only. You should contact the theme developer regarding this.
Feel free to get back to us if you need any further assistance.
Hello, @ Sahil,
The “error establishing database connection” message usually indicates that there is an issue with the connection between your website and the database server. There are several possible reasons for this error, including:
1. Server Overload: If your website receives a lot of traffic, it can overload the server and cause the database connection to fail.
2. Corrupted Database: If your database is corrupted or has become too large, it can cause the database connection to fail.
3. Incorrect Database Credentials: If the database credentials in your website’s configuration file are incorrect, it can cause the database connection to fail.
To troubleshoot this issue, you can try the following steps:
1. Check your server logs: Check your server logs for any error messages related to the database connection.
2. Test your database connection: Try connecting to your database using a database management tool like phpMyAdmin or MySQL Workbench to see if the issue is with your website or the database server.
3. Check your website’s configuration file: Verify that the database credentials in your website’s configuration file are correct.
4. Optimize your database: If your database is large or corrupted, you may need to optimize it using a tool like WP-Optimize or WP-Sweep.
If none of these steps resolve the issue, you may want to consider resetting your WordPress and starting from scratch OR try to Install the theme on a very fresh and new WordPress.
Kind Regards,
8Themes Team.
As i said, this has been happening to your particular theme only and hosting provider itself confirmed that if it’s happening to particular theme then the theme is at fault. Kindly check my last post too where i complaint about it(the day i purchase theme) but you guys told me that it happened when editing happens on a live website.
Hello @Sahil,
We would appreciate it if you could provide us with a short video clip of the issue so that we can replicate and test it on your site.
We kindly also request confirmation (video) that there is no issue with the default theme.
Additionally, if you could share the WordPress Admin URL and credentials, as well as the cPanel URL and login details, it would be helpful for us to further investigate the issue and provide assistance.
Best Regards,
8Theme’s Team
Tagged: database connection, error, fixes, frequent, solutions, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up