Fix fix roundcude DATABASE FOUT: VERBINDING MISLUKT!

Bij het inloggen op het Roundcude-e-mailaccount in het CWP-configuratiescherm verschijnt het volgende foutbericht: ▼

DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.

Fix fix roundcude DATABASE FOUT: VERBINDING MISLUKT!

Controleer op roundcude-databasefouten

Controleer het foutenlogbestand van Roundcude ▼

/usr/local/cwpsrv/var/services/roundcube/logs/errors

Als je fout er zo uitziet

[17-May-2021 20:18:11 +0000]: <gv4343g> DB Error: SQLSTATE[HY000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 173 (GET /roundcube/)
[17-May-2021 20:18:11 +0000]: <gv4343g> DB Error: SQLSTATE[HY000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) (GET /roundcube/)

Controleer het roundcube-configuratiebestand

Controleer het wachtwoord dat is ingesteld in het roundcube-configuratiebestand  /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php

grep db_dsnw /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php

De uitvoer zal zo zijn

$config['db_dsnw'] = 'mysqli://roundcube:42Etn3fd7skc@localhost/roundcube';
  • Dit geeft aan dat het wachtwoord is 42Etn3fd7skc

Laten we nu dezelfde waarde instellen in MySQL ▼

mysql -e "SET PASSWORD FOR 'roundcube'@'localhost' = PASSWORD('42Etn3fd7skc');"
mysql -e "FLUSH PRIVILEGES;"

Controleren of roundcube werkt?

Controleer nu opnieuw of roundcube werkt?

Als deze fout optreedt

[17-May-2021 20:29:09 +0000]: <gv91fd30g> DB Error: [1146] Table 'roundcube.session' doesn't exist (SQL Query: SELECT `vars`, `ip`, `changed`, now() AS ts FROM `session` WHERE `sess_id` = 'gv93bfdsfdffdfdj3') in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 539 (GET /roundcube/)

voer deze opdracht uit

mysql -u root 'roundcube' < /usr/local/cwpsrv/var/services/roundcube/SQL/mysql.initial.sql

Dat is alles, veel plezier met je rondje.

Daarnaast is er een andere fout die verschilt van de bovenstaande fout, de oplossing en reparatiemethode, blader door de onderstaande artikellink:

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Scroll naar boven