First time here, facing a bigtime wordpress situation. My Ubuntu installation crashed beyond repair during upgrading version. Managed only to copy the wordpress files, installed in /opt/lampp/htdocs, cause I'm developing in localjost. There was no salvage of mySQL directory in Ubuntu installation, as it was beyond my skills in cli-linux, so it is gone for good...
What have tried so far, is creating a new database with same name as the old one, and copied wp-config.php and all files to the folder where reinstalled wordpress. I get "Error Establishing a Database Connection".
Is there anything to be done, e.g recreating database with same name in mySQL to link wp-config or wp-content, and link Wordpress file folder to new database? Furthermore, if it is possible to link wp files to a new database,how to access site with all passwords lost?
Please inform me, before starting over the development of the site.
First time here, facing a bigtime wordpress situation. My Ubuntu installation crashed beyond repair during upgrading version. Managed only to copy the wordpress files, installed in /opt/lampp/htdocs, cause I'm developing in localjost. There was no salvage of mySQL directory in Ubuntu installation, as it was beyond my skills in cli-linux, so it is gone for good...
What have tried so far, is creating a new database with same name as the old one, and copied wp-config.php and all files to the folder where reinstalled wordpress. I get "Error Establishing a Database Connection".
Is there anything to be done, e.g recreating database with same name in mySQL to link wp-config or wp-content, and link Wordpress file folder to new database? Furthermore, if it is possible to link wp files to a new database,how to access site with all passwords lost?
Please inform me, before starting over the development of the site.
Share Improve this question asked Aug 6, 2020 at 18:54 CodeBuggingCodeBugging 101 3 |1 Answer
Reset to default 0If you have no database backups then you're going to have to start from scratch. The database cannot be recreated from the uploads folder and plugin/theme files.
wp-config.php
after backing it up and run the 5 minute install, then you can create a new user and start recreating the posts and pages – Tom J Nowell ♦ Commented Aug 6, 2020 at 19:52