WordPress installation on windows-certain tables missing

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6825
    DanielleHarvey
    Participant

    Hi all,
    Am facing the following issue while trying to install WordPress. I keenly checked all the database connections and permissions.

    PHP Fatal error: Uncaught mysqli_sql_exception: Table ‘lws_dev.wp_options’ doesn’t exist in C:\inetpub\wwwroot\lws-dev\wp-includes\wp-db.php:2056
    Stack trace:
    #0 C:\inetpub\wwwroot\lws-dev\wp-includes\wp-db.php(2056): mysqli_query()
    #1 C:\inetpub\wwwroot\lws-dev\wp-includes\wp-db.php(1945): wpdb->_do_query()
    #2 C:\inetpub\wwwroot\lws-dev\wp-includes\wp-db.php(2581): wpdb->query()
    #3 C:\inetpub\wwwroot\lws-dev\wp-includes\functions.php(1734): wpdb->get_var()
    #4 C:\inetpub\wwwroot\lws-dev\wp-includes\load.php(752): is_blog_installed()
    #5 C:\inetpub\wwwroot\lws-dev\wp-settings.php(159): wp_not_installed()
    #6 C:\inetpub\wwwroot\lws-dev\wp-config.php(100): require_once(‘…’)
    #7 C:\inetpub\wwwroot\lws-dev\wp-load.php(50): require_once(‘…’)
    #8 C:\inetpub\wwwroot\lws-dev\wp-admin\install.php(36): require_once(‘…’)
    #9 {main}
    thrown in C:\inetpub\wwwroot\lws-dev\wp-includes\wp-db.php on line 2056

    Please suggest me what can be done
    Thankyou in advance

    #6855
    Gowthami R
    Keymaster

    The code causing the error should not have been encountered during installation. It’s as if wordpress doesn’t know it is in installation mode. Try adding this to wp-config.php:
    define( ‘WP_INSTALLING’, true );

    Get into the phpMyAdmin app and drop any tables that may have been created as part of your failed installation attempt. Proceed very carefully if this DB is used by any other apps. While here, double-check the privileges assigned to the DB user used by WordPress. The user must have at least all data and structure privileges. Note that it’s possible for DB-specific privileges to override global privileges. Be sure to check under both.

    Attempt executing install.php again. If successful, remove the definition line from wp-config.php.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.