Bug (approved)

Can't connect to database after clean install


Dec 10, 2008
Dec 10, 2008 / madlyr
Nov 6, 2012 / marc.f

Attached files

No files uploaded
Clean installation, after successful installation, deleting install directory redirect to login page shows error message: "Cannot connect to database". Database and all tables are created - phpMyAdmin shows it and it looks like at create phase all was really successful.

I checked SVN and at last revision 447 the same error.

Clean install version 0.803 goes without any errors and problems.

Issue report

PHP 5.2.6, MySQL 5.0.66a, FreeBSD, Apache based server (based on 1.3 code), Firefox 3.0.4
0.08093 RC1
Clean install. After install - first login to Streber failed with error "Cannot connect to database".



madlyr:Upgrade from 0.803 to 0.8094 rev 447 goes well

10 years ago (2. update 10 years ago)

As in the title - upgrade (at least to last SVN revision) goes without any problems.

pixtur:Very good report...

10 years ago

Is the db_settings-file been created?

madlyr:I'll check in 1-3 following days

10 years ago

I'm not shure - I don't remeber. I think it was that file... I'll check RC1 and try RC2 on clean install.


pixtur:please test...

10 years ago

guest:I've the same problem ...

10 years ago -

... and the db_setting_file is created.

V0.09 - Screen looks like this:

You are one of the few people witnessing this installation
of streber being offline. Use your chance now and
send a mail to xxx@xxx.de to get your special reward immediately.

Problem: could not connect to database.


10 years ago

Can you try the following:
  1. Clear Browser-cache and reload
  2. Did this occur after install or upgrade?

marc.f:RE: Can't connect to database after clean install

6 years ago

I'm running into the same issue. I upgraded from v0.0912 to v0.093. After a successful install it creates the db_setting file with the proper credentials, but when I try to view the site it says it cannot connect to the database.

I have some PHP knowledge; is there a way to get the credentials to be written to the screen? In my case the site is under a password protected directory so the risk is minimal.

Can I simply do?

echo $g_config['DB_PASSWORD'];