• Resolved bilateral

    (@bilateral)


    Hi there

    in a cleanout of my wordpress directory, I accidentally deleted my wp-config.php file

    I rebuilt the wp-config.php file, populating it with the credentials for all of the following, which I found at my webhost database page:

    DB_HOST;
    DB_USER;
    DB_PASSWORD;
    DB_NAME;

    It works – but now when I visit my blog, it just takes me to the “Welcome” page, as if I’ve created a whole new blog:

    “Welcome to the famous five-minute WordPress installation process!”

    I logged into PHPMyAdmin and all my database tables are still there.

    But the site as it appears online isn’t showing all the stuff in the database (117 posts).

    Any suggestions?

    site is https://environmental-audit.net

    cheers and thanks!

    Lucas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Usually this means that you have set the table_prefix incorrectly in your wp-config.php file.

    Use phpmyadmin (from your hosting control panel) to observer the table names and set $table_prefix correctly.

    Thread Starter bilateral

    (@bilateral)

    Many Thanks Steve!

    – I can see that I need to change that in the wp-config.php file.

    I’ve logged in PHPMYADMIN but I don’t know what to look for to get the right bit of info to put in the $table_prefix section.

    Any clues?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what are the names of the tales? Look for the options table. If it’s wp_options, then the prefix is wp_.

    Thread Starter bilateral

    (@bilateral)

    many thanks! that fixed it, and I’m up and running again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Accidentally deleted wp-config.php – new version does not restore site’ is closed to new replies.