Fix fix roundcude DATABASE FOUT: VERBINDING MISLUKT!

登录CWP-configuratieschermroundcude mailbox, de volgende foutmelding verschijnt ▼

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

Gelieve dit na te kijkenroundcude foutenlogbestand

/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

Laat het ons wetenMySQLstel dezelfde waarde in in ▼

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 het, geniet van de jouwe ronde snit (afgeronde kubus).

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

发表 评论

Uw e-mailadres wordt niet gepubliceerd. 必填 项 已 用 * 标注

Scroll naar boven