Hallo zusammen
Nach dem Kopieren der Serverinstallation in die lokale XAMPP Installation habe ich dasselbe Problem :
Die DB habe ich mittels Backup und Import lokal installiert
Fehler website:
Code:
[03-Mar-2019 12:46:53 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'Access denied for user 'hr-db-admin'@'localhost' (using password: YES)' thrown in I:\xampp-7-3-2\htdocs\contao-3-5-25\hr-vision\system\modules\core\library\Contao\Database\Mysqli.php on line 50
Fehler install.php :
Code:
[03-Mar-2019 12:59:38 Europe/Berlin]
PHP Warning: mysqli::real_connect(): (HY000/1045): Access denied for user 'hr-db-admin'@'localhost' (using password: YES) in I:\xampp-7-3-2\htdocs\contao-3-5-25\hr-vision\system\modules\core\library\Contao\Database\Mysqli.php on line 46
#0 [internal function]: __error(2, 'mysqli::real_co...', 'I:\\xampp-7-3-2\\...', 46, Array)
#1 I:\xampp-7-3-2\htdocs\contao-3-5-25\hr-vision\system\modules\core\library\Contao\Database\Mysqli.php(46): mysqli->real_connect('localhost', 'hr-db-admin', '*********', 'db_hr-vision-ct...', 3306, '')
Von mir aus sind die Werte für User, DB und Passwort identisch.
Inhalt der localconfig :
Code:
$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
$GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
$GLOBALS['TL_CONFIG']['dbUser'] = 'hr-db-admin';
$GLOBALS['TL_CONFIG']['dbPass'] = '******';
$GLOBALS['TL_CONFIG']['dbDatabase'] = 'db_hr-vision-cto-3-5-25';
$GLOBALS['TL_CONFIG']['dbPconnect'] = false;
$GLOBALS['TL_CONFIG']['dbCharset'] = 'UTF8';
$GLOBALS['TL_CONFIG']['dbPort'] = 3306;
In PHPMyAdmin (Benutzer)
Benutzer mit Zugriff auf "db_hr-vision-cto-3-5-25"
hr-db-admin localhost global ALL PRIVILEGES Ja Rechte ändern Rechte ändern Exportieren Exportieren
Habe ich da etwas bei der XAMPP Installation übersehen, resp. wo kann ich noch suchen ?
Danke und Gruss
Beat
Gelöst.
Mit einem DB Connectiontest (mysqli_connect) ging die Verbindung.
Ich habe dann in der localconfig die Werte noch einmal manuel eingegeben und danach ging auch mit der Contao Installation die Verbindung zur DB.
Ich vermute nun, dass bei dem Kopieren Host (UNIX) --> Lokal (Win10) en Problem mit den '-' Zeichen entstand.
Lesezeichen