Unable to connect to database.

Permalink
Dear all readers,

I am new with concrete 5 and i figured out how this all things are running but now i am stucking.

I am owner ofhttp://www.biofind.de and biofind.eu and since this morning I am unable to access to my homepage.

It is showing following message :
Unable to connect to database.
"A database error occurred while processing this request.
< Back to Home"

If I click on back to home there is no result.

What I've done before:

I worked with Strato.de domain hosted online shop solutions and added an online shop on this subdomain: shop.biofind.de. This is completely running PERFECTLY.

Now I was searching on Google and this Forum for answeres on this issue but no answers were helpful.

I updated my site.php to my new database (haven't switch the host provider!!!) I thought this will might be the problem, but wasn't.

As I am little bit stupid, deleted on site.php the Password_SALT which I thought is not anymore useful cause of my new database.

Can anyone help? Please do not give me an answer that I should call the domain provider for help, I did already and they said ask concrete 5 for problems.

Please help me out

biofind
 
JohntheFish replied on at Permalink Reply
JohntheFish
This error is often a result of some of the settings in config/site.php not being correct for the database you are using.

You mention moving hosts. Have you moved a site without moving the database? or perhaps moved the database, but not changed config/site.php to point to the new database?

The password salt will be needed to login, but if incorrect will probably not prevent your site from connecting to the database. A corrupted or incorrect salt will however prevent you and your users from logging in.
biofind replied on at Permalink Reply
biofind
Hey JontheFish,

thank you for your fast reply.

I have not moved the host. I am staying since the first at Strato.de.

My Homepagehttp://www.biofind.de wasn't working one time and I was on problem searching through strata databases.

I asked myself what I did and I found out that I registered a subdomain shop.biofind.de which is using another database.

I have 2 databases free of cost at strato hosting. I found out that I have a database (which does not match with the old from my biofind.de site) and another (which is for the shop).

I changed everything in the site.php and deleted the password_salt. Now the administrator of strata.de told me they haven't any update on this.

What should I do?
808computers replied on at Permalink Reply
808computers
You deleted your SALT key? o_O
Uh oh. I don't think you will be able to recover that..
You will most likely never be able to log on to your website since that SALT is what is used for hashing your password so it isn't stored as clear text in the database. Without that the concrete5 site wont understand your password when you type it in the login field. You may be able to generate a new 64-bit salt and reset your password but I hope you are the only user on that website cause everyone will have to reset their password if you cant recover your old salt.

But that should be unrelated to the current error you are getting. For some reason Concrete5 can't connect to the database.

You said you had to update your site.php to a new database? I don't quite understand why you had to create a new database if you haven't moved host. Can you explain why you had to make a new database so I can better assist?

Also, who is your hosting provider?