Bug #54159
closedInstaller got no DB Connection on locahost
0%
Description
Affected Versions
6.1, 6.2
This Happens:
Installer did not got a DB-Connection, even if userdata and Password is right and work for other CMS and Shop-Software on same host.
This is the cause:
The Driver for the DB is not set.
Detail-Information
Have a Look into typo3/sysext/dbal/Classes/Database/DatabaseConnection.php, at Line 2463.
There are some overwrites for $this->handlerCfg['_DEFAULT']['config']
which is initiate at Line 75.
There you see the '_DEFAULT' array:
public $handlerCfg = array(
// See manual.
'_DEFAULT' => array(
'type' => 'native',
'config' => array(
'username' => '',
// Set by default (overridden)
'password' => '',
// Set by default (overridden)
'host' => '',
// Set by default (overridden)
'database' => '',
// Set by default (overridden)
'driver' => '',
// ONLY "adodb" type; eg. "mysql"
'sequenceStart' => 1,
// ONLY "adodb", first number in sequences/serials/...
'useNameQuote' => 0,
// ONLY "adodb", whether to use NameQuote() method from ADOdb to quote names
'quoteClob' => FALSE
)
)
);
If you set 'driver' to 'mysql', it works like a charm.
May the overwriting for the driver missed in the Function sql_pconnect ??
Updated by Markus Klein almost 11 years ago
- Category changed from Install Tool to 999
- Status changed from New to Needs Feedback
Are you using MySQL? Do you have to use dbal on purpose?
Otherwise just uninstall dbal and things should work as expected.
Nevertheless, I'll move this to the DBAL tracker.
Updated by Markus Klein almost 11 years ago
- Project changed from TYPO3 Core to 329
- Category deleted (
999)
Updated by Michael Stucki almost 11 years ago
- Project changed from 329 to TYPO3 Core
Updated by Renzo Bauen over 10 years ago
I have the same problem with a fresh install of TYPO3 6.1.7!
My environment:
Apache 2.4.6
PHP 5.5.3
MySQL 5.5.3 (client api version)
TYPO3 6.1.7 from typo3.org Download
A former 6.1.5 Site, updated to 6.1.7 by changing the symlinks, works fine.
While attempting to connect to the db, TYPO3 writes a depracted-log entry:
23-02-14 xx:xx: DatabaseConnection->sql_pconnect() and DatabaseConnection->connectDB() should be called without arguments. Use the setters instead.
There is no AdditionalConfiguration.php or AdditionalFactoryConfiguration.php in the typo3conf Directory.
To be able to setup a fresh 6.1.7 i have first to setup a 6.1.5 and then migrate to 6.1.7!!
Best Regards
Renzo
Updated by Alexander Opitz over 10 years ago
Hi,
does this issue happen with latest TYPO3 version? (6.1.10 or 6.2.4)
Updated by Alexander Opitz almost 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Updated by Samuel Suther over 6 years ago
Hi,
because there is no Imprint, No Mail-Address or any other way to contact the owner of the Page, I write it down here.
Please remove my account and my posting and send me a notice if done.
Thank you.