Title: Errro establishing database connection issues
Last modified: January 30, 2025

---

# Errro establishing database connection issues

 *  [maruthasalam](https://wordpress.org/support/users/maruthasalam/)
 * (@maruthasalam)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/establishing-database-connection-issues/)
 * My wordpress site is down and when i restart it again it’s up and running. Found
   the server logs following warning shows this
   1.The log warning `[MY-012985] [
   InnoDB] A long semaphore wait` suggests a potential database lock or resource
   contention issue.2.validate password plugin is deprecated and will be removed
   in a future release please use vaildate password component instead in wordpress3.
   Error establishing database connectionWordPress version – 6.3mysqli – Server 
   version8.0.40-0ubuntu0.20.04.1Server architecture – Linux 5.15.0-1075-aws x86_64Web
   server – Apache/2.4.57 (Ubuntu)PHP version – 7.4.33-SergeyD/6.1 (Supports 64bit
   values)
 * ![](https://wordpress.org/27415197-4506-4cc1-89e6-e9eabde13e6b)
 * Error message from server logs
 * ![](https://wordpress.org/b2bb498a-606a-4187-b042-c6d2c70c77d0)
 * ![](https://wordpress.org/2972394f-2017-475f-85b8-ab5d634c555e)
 * ![](https://wordpress.org/8505b94b-310b-4469-8b19-a5f6ee36e971)
    -  This topic was modified 1 year, 4 months ago by [maruthasalam](https://wordpress.org/support/users/maruthasalam/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/establishing-database-connection-issues/#post-18275522)
 * If you have tried to post pictures, please follow the procedure described here:
   [https://wordpress.org/support/forum-user-guide/block-editor/#adding-screenshots](https://wordpress.org/support/forum-user-guide/block-editor/#adding-screenshots)
 *  [Olvy Cloud](https://wordpress.org/support/users/olvycloud/)
 * (@olvycloud)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/establishing-database-connection-issues/#post-18275563)
 * Hello,
 * Please try to run the following MySQL command to Identify long-running transactions:
 * `SHOW ENGINE INNODB STATUS;`
 * Also please check what size is for `innodb_log_file_size`
 * Because if `innodb_log_file_size` is too small, transactions cannot commit efficiently.
   
   As an alternative option, you may want to consider moving from MySQL 8.0 to MariaDB
   11.4. Because MariaDB offers enhanced query optimization and resource efficiency,
   making it ideal for high-traffic websites. More details about [MySQL vs MariaDB](https://olvy.net/blog/mariadb-vs-mysql-which-is-better-for-your-ecommerce-website/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Errro establishing database connection issues’ is closed to new replies.

## Tags

 * [MariaDB](https://wordpress.org/support/topic-tag/mariadb/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Olvy Cloud](https://wordpress.org/support/users/olvycloud/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/establishing-database-connection-issues/#post-18275563)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
