• Hey guys, ive searched the forums before posting, just curious to find a fix quick.

    I have removed wp config file by accident and now my site is down, and have tried different methods of fixes and have not had luck.

    My question is… to get my site back up…Can I use this method? > Backup my database, remove database tables and data, uninstall wordpress. Reinstall wordpress in the same database and reupload my backup.

    In other words, will that backup site be visible?
    Or will installing a new database give me a completely different wp config file?

    If this method will work, can someone give me a step by step just to make sure I am on same page?

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • The best fix is find database name,database user with access and password for it.

    By using info above you can generate a wp-config.php file from here.
    https://generatewp.com/wp-config/

    Thread Starter emergelab

    (@emergelab)

    Ive tried this but it does not seem to be working.

    I have gotten in phpmyadmin, located the database, can see the db name, user, pass and used a new wp cofig, with these details and it still does not work??? even checking the prefix.

    The other thing I have tried is creating a completely new db, uploadingt a db backup, uploading content folder via ftp and the site does not come up?

    Thread Starter emergelab

    (@emergelab)

    I have gotten in phpmyadmin, located the database, can see the db name, user, pass and used a new wp cofig, with these details and it still does not work??? even checking the prefix

    Thread Starter emergelab

    (@emergelab)

    The other thing I have tried is creating a completely new db, uploading a db backup, uploading content folder via ftp and the site does not come up?

    If you have correct
    dbname,
    user,
    pass,
    prefix
    and
    host(by defaul it is localhost).

    There should be not an issue.

    Thread Starter emergelab

    (@emergelab)

    Yes, I do. perhaps another conflict?

    Will the other method work? The question I posted regarding removing and reinstalling?

    Or how can I get the site to pull up on the fresh new install that I created?

    For other method.

    1. Make a backup of site and its database.
    2. Remove all files from site directory.
    3. Do a fresh WordPress install.
    4. Overwrite new site files with old backup.
    5. Drop all tables and data from new database and export old database.

    This should work..

    Thread Starter emergelab

    (@emergelab)

    Meaning,

    1. Backup a copy of wp contents?
    2. Delete the entire site from the folder in ftp?
    3. Upload a Fresh WordPress install via cpanel or upload FTP?
    4.Upload the wp contents folder to the new wp content folder?
    5. drop all table via phpmyadmin? And upload DB Backup?

    Yes, That’s correct.

    Thread Starter emergelab

    (@emergelab)

    Gyan, thanks so much,
    Should I use ftp to install wordpress or my cpanel?

    I will use this method.
    Ill try now.

    Thread Starter emergelab

    (@emergelab)

    What about the user and password?
    Do I need to reconfigure these after I backup the database?
    Or leave the same?

    Thread Starter emergelab

    (@emergelab)

    Did not work using the previous db name/user/ pass. Error establishing a database connection. ?? grrrrrrr

    Thread Starter emergelab

    (@emergelab)

    Ok, so Ive got it working as I skipped adding a new user, But I just added the user with pass and now I am inside the wordpress dashboard.
    But the site and content, pages are not visible. Anything I am missing?
    Activate the Theme possibly?

    Thread Starter emergelab

    (@emergelab)

    I have taken care of it!
    I had to backup DB, drop DB and re install a fresh wordpress and reload database, add new user and pass. And now it is fixed.

    Thanks for the help!

    Good to know it is fixed..

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Re installing WordPress and re uploading backup database’ is closed to new replies.