• So I did a WP site for a friend 6 months ago. He’s no tech head and all I really know how to do is set it up then work with templates.
    Anyway, his site has suddenly stopped working due to what it says is a ‘database error’. I tried repair from the wp-admin login page and it told me that it couldn’t repair the wp_options table because

    ‘wp_options: Table ‘xxxxxxxxxxx_xxx.wp_options’ doesn’t exist’

    I went into phpmyadmin and confirmed there is no wp_options table there. It does not exist at all.
    I have an option to create a table but I have no idea what to put in all the required boxes that come up when I do so.
    Is there any way to fix this?
    All his pics and posts are still in the Public file on the CPanel. Will I have to re-install WP and lose all his stuff?
    HEEEEEEELLLLLP!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Do you have a recent database backup?

    Thread Starter DrMickMach

    (@drmickmach)

    I doubt it, as the guy is very technically unminded. He’s an artist who needed a site to promote his work so I just organised him a domain name and put an installation of wp on there and showed him how to put up pictures etc. That was sometime ago and I haven’t looked at it since the initial set up.

    Check if his hosts have a db backup. Without a copy to restore, his site’s content is pretty much toast.

    Thread Starter DrMickMach

    (@drmickmach)

    Thanks muchly. If there is no db back up, can I just do a re-install of WP into the folder it is now – wiping the intall that’s there already. Or do I need to uninstall WP first then re-do it?
    Sorry if these are basic questions, I’m not a massive WP head myself, just really know how to put one up and make it look a bit pretty.

    In your shoes, I’d create a fresh database, edit wp-config.php to point to the new db and then re-run the install. WP doesn’t have an un-install routine. Plus, if you use a new db, you still have the old one to fall back on if you need a copy of any raw content.

    Thread Starter DrMickMach

    (@drmickmach)

    Thanks esmi, I’ll have to do a bit of research about creating a new db (tho I think I know how – in the Cpanel yes?) and then editing the wp-config.php (I have had to edit it before at least, just in a very minor capacity so I should be able to work it out.)

    Actually, I’ve just had a squiz at the config file. Do I just need to change the first few lines where it (xxxxx being the database and passwords)to the name and password of the new database I create? ie:

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘xxxxxxxxxxxx’);

    /** MySQL database username */
    define(‘DB_USER’, ‘xxxxxxxxxx’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘xxxxxxxx’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    in the Cpanel yes?

    Yes – look in the Database management pane. remeber that you’ll also need to set up a new users for that database with full privileges. You should be able to assign the user from your old db to the new one, if I remember correctly.

    You’ll definitely have to change the DB_NAME. Whether you need to also change DB_USER & DB_PASSWORD as well depends on whether you opt to carry on with the same user.

    Thread Starter DrMickMach

    (@drmickmach)

    No worries. I guess the easiest way to do it is through the MySQL Database Wizard in the CPanel?

    And just to do a final clarify on the process:
    1. Create new db (but assign original user)
    2. Edit wp-config.php to reflect this change.
    3. run Softaculous and install a copy of WordPress into the folder it was already.
    4. Login to WP and re-do website from scratch
    5. Curse myself for not doing a back up!

    Thread Starter DrMickMach

    (@drmickmach)

    Hey I got it happening tho he’s going to have to start his website again from scratch but at least it’s up.
    Thanks heaps esmi

    No problem ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp_options table disappeared’ is closed to new replies.