5.0.0 - 普通 - 未处理
看报错信息是连接数据库的配置错了,但只有运行一段时间后才会这样,数据库是在onMessage中载入的Config::load(APP_PATH . '../conf/database' . CONF_EXT,'database');
Config::load(APP_PATH . '../conf/config' . CONF_EXT);[think\exception\ErrorException]
Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php:293
Stack trace:
#0 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php(293): PDO->__construct('mysql:dbname=;h...', 'root', '', Array)
#1 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php(968): think\db\Connection->connect()
#2 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php(346): think\db\Connection->initConnect(false)
#3 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/connector/Mysql.php(62): think\db\Connection->query('SHOW COLUMNS FR...', Array, false, true)
#4 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Query.php(1743): think\db\connector\Mysql->getFields('`user`')
#5 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Query.php(1777): think\db\Query->getTableInfo('user', 'pk')
#6 /home/wwwroot/card.juqiyoupin.com/think/library/thi
[2019-04-15 18:53:38 *2043.1] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php:293
Stack trace:
#0 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php(293): PDO->__construct('mysql:dbname=;h...', 'root', '', Array)
#1 /home/wwwroot/card.juqiyoupin.com/think/library/think/db/Connection.php(968): think\db\Connection->connect()
#2 /home/www
[2019-04-15 18:53:38 $11262.0] WARNING swManager_check_exit_status: worker#1 abnormal exit, status=255, signal=0 