2
No, you didn't. Well, not completely.
You will need to get a fresh copy of mainfile.php, edit it's contents (writing the path to your website root, the URL of your website, the database server, database name, username, password, all that info goes into mainfile.php. Then, put it in your website root, and your site should run perfect again.
Herko