I am working on a client's website and I revamped the website but he wants me to import the old website via a backup file to the /old/ directory. I have uploaded the WP folder from the back up file to the /old/ directory in the public_html of the main website.
But when I do that, and try to access it by putting /old/ at the end of the website URL, I see a database error that reads "Error establishing a database connection."
I tried to create a new database and a new database user and linking both and then entering the details in the wp-config.php but when I did that, I got a very new and clean installation of WordPress rather than the old WordPress website.
Can you please help me out? I can provide you the cPanel login details.