HELP! I deleted my user information from my SQL database and my site is unviewable

Permalink
Help! Please.

I inadvertently deleted my user information from my SQL database on my server. The database still exists though.

What I've done is create new user information for access to the database but I don't know where to plug this user information back into Concrete5 (I remember filling this info in when I first set up concrete5 on my server).

My website is now down with the following error message:

Catchable fatal error: Argument 1 passed to ConfigStore::__construct() must be an instance of Database, null given, called in /home/serenity/public_html/concrete/models/config.php on line 48 and defined in /home/serenity/public_html/concrete/models/config.php on line 136


What do I do to get my site back up and running? I don't know any php so answer in lames terms please.

I'd really appreciate a response a I'm due to meet the client tomorrow!!!!

Adam.

 
cgrauer replied on at Permalink Best Answer Reply
cgrauer
What exactly did you do? Did you delete the admin entry in the "Users" table in your database? Then recreate it using for example PHPMyAdmin. Make sure the uID is 1 and the uName is "admin". Encrypt the password with MD5.

Or did you delete the user (username and/or password) for access to your SQL-Database-System? Then create a new one and go to the file /home/serenity/public_html/concrete/config/site.php and put the new information to the constants DB_USERNAME and DB_PASSWORD
slaminteractive replied on at Permalink Reply
Thanks for your quick reply. I actually happened to figure it out just before your post but the 2nd portion of your reply was the relevant one.

What I could have done was re-create the exact same user with exact same password in my server control panel for access to the DB, then I wouldn't have had to mess with any site.php settings( but that just didn't cross my mind at the time!)

At least I now know a bit more about the site.php file and what it does.

Anyhow, cheers for the reply and I'll get back to what I was doing before my now apparent minor hiccup.