Title: Table &#039;wordpress.wp_comments&#039; doesn&#039;t exist?
Last modified: August 19, 2016

---

# Table 'wordpress.wp_comments' doesn't exist?

 *  [philtronics](https://wordpress.org/support/users/philtronics/)
 * (@philtronics)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/)
 * Comments were not saving… I figured out how to turn on the debug messages, and
   here’s what it said:
 * WordPress database error: [Table ‘wordpress.wp_comments’ doesn’t exist]
    SELECT*
   FROM wp_comments WHERE comment_post_ID = 481 AND (comment_approved = ‘1’ OR (
   user_id = 1 AND comment_approved = ‘0’ ) ) ORDER BY comment_date_gmt
 * The table must have got deleted by accident, how can I reconstruct it? I can 
   issue whatever MySql commands are needed, etc.

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

 *  [Ad Lagendijk](https://wordpress.org/support/users/adlag/)
 * (@adlag)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/#post-1797276)
 * Do you have a backup?
    Manipulation with the database directly is best done using
   phpAdmin.
 *  Thread Starter [philtronics](https://wordpress.org/support/users/philtronics/)
 * (@philtronics)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/#post-1797299)
 * I think it was gone before I backed it up… maybe I can find something on Google
   about how to recreate it.
 * I use mysql.exe (or something like that) from a command prompt – to execute MySQL
   commands. How do I run phpAdmin?
 * Keep in mind this is an IIS server and php was an add-on. It felt like a juryrig.
 *  [Ad Lagendijk](https://wordpress.org/support/users/adlag/)
 * (@adlag)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/#post-1797311)
 * You can find all information [here](http://www.phpmyadmin.net/home_page/index.php).
   It is a free opensource collection of php scripts with one convenient browser
   interface to manage MySQL databases.
 *  Thread Starter [philtronics](https://wordpress.org/support/users/philtronics/)
 * (@philtronics)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/#post-1797407)
 * It’s fixed! I made a new wp_comments table using a giant MySQL Create Table statement.
   I used the MySQL command shell, so I wouldn’t say phpAdmin is best necessarily.
 * The create table statement was worked out by somebody at this URL, which I really
   appreciate:
 * [http://www.crazybulb.com/blogging/wordpress-blank-page-after-posting-a-comment-wp-comment-post-php/](http://www.crazybulb.com/blogging/wordpress-blank-page-after-posting-a-comment-wp-comment-post-php/)

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

The topic ‘Table 'wordpress.wp_comments' doesn't exist?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [philtronics](https://wordpress.org/support/users/philtronics/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/table-wordpresswp_comments-doesnt-exist/#post-1797407)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
