Grüss Gott.
Vorweg: Bin noch nicht sehr erfahren mit Contao!
Mein Problem: Es müsste ja möglich sein, zwei Contao-Installationen in zwei verschiedenen Ordnern der gleichen Ebene zu installieren. Ich habe im "root/contao" und im "root/contao2" jeweils eine Installation von Contao 3.2.1. Beim Aufruf der zweiten Installation erhalte ich (mit Hilfe der localconfig) folgende Fehlermeldung, deren Inhalt ich nicht verstehe:
Code:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'webXXX'@'localhost' (using password: YES) in system/modules/core/library/Contao/Database/Mysqli.php on line 47
#0 [internal function]: __error(2, 'mysqli::mysqli(...', '/home/www/webXX...', 47, Array)
#1 system/modules/core/library/Contao/Database/Mysqli.php(47): mysqli->mysqli('localhost', 'webXXX', 'PWXXXXXXXX', 'usr_webXXX_', 3306, '')
#2 system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysqli->connect()
#3 system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct(Array)
#4 [internal function]: Contao\Database::getInstance()
#5 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#6 system/modules/core/library/Contao/User.php(89): Contao\System->import('Database')
#7 system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#8 system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#9 [internal function]: Contao\User::getInstance()
#10 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#11 index.php(41): Contao\System->import('FrontendUser', 'User')
#12 index.php(413): Index->__construct()
#13 {main}
Fatal error: Uncaught exception Exception with message Access denied for user 'webXXX'@'localhost' (using password: YES) thrown in system/modules/core/library/Contao/Database/Mysqli.php on line 51
#0 system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysqli->connect()
#1 system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct(Array)
#2 [internal function]: Contao\Database::getInstance()
#3 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#4 system/modules/core/library/Contao/User.php(89): Contao\System->import('Database')
#5 system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#6 system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#9 index.php(41): Contao\System->import('FrontendUser', 'User')
#10 index.php(413): Index->__construct()
#11 {main}
Da ist doch irgendetwas mit der Datenbank nicht in Ordnung!? Wenn ich im Confixx das PW der Datenbank erneuere, läuft alles. Dann habe ich aber den Fehler in der anderen Installation. Ich habe bei Tophoster ein "M 3.0". Hat jemand einen Tipp für mich? Danke!
Gruß,
Uli
Lesezeichen