Title: WordPress database error: [Table &#8216;blog.wp_options&#8217; doesn&#8217;t exist]
Last modified: August 18, 2016

---

# WordPress database error: [Table ‘blog.wp_options’ doesn’t exist]

 *  [guht](https://wordpress.org/support/users/guht/)
 * (@guht)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/)
 * Stuck on Step 1…. I immediately get these errors during Step 1 of the installation
   process.
 * Warning: Invalid argument supplied for foreach() in c:\inetpub\wwwroot\blog\wp-
   includes\functions.php on line 355
 * WordPress database error: [Table ‘blog.wp_options’ doesn’t exist]
    SELECT option_value
   FROM wp_options WHERE option_name = ‘permalink_structure’
 * As you can see it is complaing because when it trys to execute the query it cant
   because the table it is trying to query doesnt exist. I confirmed that it doesnt
   exist through MySql client, and phpMyAdmin.
 * The config file is correct.. I doubled and triple checked it.. I have gotten 
   phpMyAdmin working with the same values. I have even used a test php script with
   the values found in config file to actually create the missing table. So the 
   account appears to have to correct permissions to alter database. However I have
   tried using root account also, and still get same errors. I could manually create
   all the tables and populate them, but that would be ALOT of work, and if I populate
   something wrong it could hose the whole install.
 * Anyone have ANY ideas or suggestions. How can I debug some of php scripts to 
   find out where/how/why its not creating these tables?
 * Thanks!

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

 *  [omann0](https://wordpress.org/support/users/omann0/)
 * (@omann0)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/#post-167431)
 * my suggestion is to clear all wp tables, remove the wordpress installation, redownload
   and reupload, and try intalling again.
 *  Thread Starter [guht](https://wordpress.org/support/users/guht/)
 * (@guht)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/#post-167433)
 * what wp_ tables? The install script never created any…
 * It looks like the file upgrade-schema.php is the one that has the commands that‘
   SHOULD’ create the tables and populate the table wp_options, but I dont know 
   if that file is even being execute or called by the install.php script.
 *  Thread Starter [guht](https://wordpress.org/support/users/guht/)
 * (@guht)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/#post-167437)
 * Actually… I just continued through the warnings and filled in the information–
   it seems to work now except im getting permissions 403 error when trying to view
   login page…
 * I think that has to do with how directory is setup in IIS..
 *  [jlivingston](https://wordpress.org/support/users/jlivingston/)
 * (@jlivingston)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/#post-168157)
 * Did you ever fix this issue of the errors on the install screen? I’m having the
   same issues. If I go through and set the blog up it’s really slow. I’m hosting
   it on a windows platform (iis6, php 4…). Any help would be appreciated.

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

The topic ‘WordPress database error: [Table ‘blog.wp_options’ doesn’t exist]’ is
closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [jlivingston](https://wordpress.org/support/users/jlivingston/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-blogwp_options-doesnt-exist/#post-168157)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
