- This topic has 1 reply, 2 voices, and was last updated 3 months, 2 weeks ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
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
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.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |