Title: MySQL errors
Last modified: August 18, 2016

---

# MySQL errors

 *  [pera](https://wordpress.org/support/users/pera/)
 * (@pera)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/mysql-errors-3/)
 * I get this error in header, anyone knows what it means ?
 * WordPress database error: [Lost connection to MySQL server during query]
    SELECT
   DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= ‘2006-04-29 11:32:59’
   AND (post_status = “publish”) AND post_status != “attachment” GROUP BY wp_posts.
   ID ORDER BY post_date DESC LIMIT 0, 20
 * WordPress database error: [Can’t connect to local MySQL server through socket‘/
   var/lib/mysql/mysql.sock’ (111)]
    SELECT DISTINCT YEAR(post_date) AS `year`, 
   MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date
   < ‘2006-04-29 06:32:20’ AND post_date != ‘0000-00-00 00:00:00’ AND post_status
   = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/mysql-errors-3/#post-381419)
 * `Lost connection to MySQL server during query`
    That’s a hosting issue – they
   do not have either a stable connection or a stable database.
 *  [pauljohns](https://wordpress.org/support/users/pauljohns/)
 * (@pauljohns)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/mysql-errors-3/#post-381868)
 * If that doesnt work, try what is suggested in this thread –
    [http://wordpress.org/support/topic/47354](http://wordpress.org/support/topic/47354)

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

The topic ‘MySQL errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [pauljohns](https://wordpress.org/support/users/pauljohns/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/mysql-errors-3/#post-381868)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
