Closed Herooyyy closed 1 year ago
有看过常见问题了吗
我看过了,好像没有看到对应的解答啊?
请回复一张截图 我大致看一下问题
我现在在外面 不方便看日志
[2023-03-12 18:17:23] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2) [stacktrace]
"}
[2023-03-12 18:17:23] production.ERROR: Config init failed: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
"} [2023-03-12 18:17:23] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2) [stacktrace]
"}
[2023-03-12 18:17:23] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
"}
[2023-03-12 18:17:23] production.ERROR: Uncaught Exception {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select * from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
","method":"GET","url":"http://yue.blue","data":"","ip":"125.73.201.192","client_ip":"125.73.201.192","headers":{"cookie":["ACG-SHOP=14iqtqm1qoosj4t9bjelt2jf2c"],"accept-language":["zh-CN,zh;q=0.9"],"accept-encoding":["gzip, deflate"],"accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7"],"user-agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"],"upgrade-insecure-requests":["1"],"connection":["keep-alive"],"host":["yue.blue"],"content-length":[""],"content-type":[""]}} [2023-03-12 18:17:28] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2) [stacktrace]
"}
[2023-03-12 18:17:28] production.ERROR: Config init failed: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
"} [2023-03-12 18:17:28] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2) [stacktrace]
"}
[2023-03-12 18:17:28] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
"}
[2023-03-12 18:17:28] production.ERROR: Uncaught Exception {"exception":"[object] (Illuminate\Database\QueryException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' (SQL: select * from systems
) at /www/wwwroot/yue.blue/vendor/laravel/framework/src/Illuminate/Database/Connection.php:2, Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2)
[stacktrace]
","method":"GET","url":"http://yue.blue","data":"","ip":"125.73.201.192","client_ip":"125.73.201.192","headers":{"cookie":["ACG-SHOP=14iqtqm1qoosj4t9bjelt2jf2c"],"accept-language":["zh-CN,zh;q=0.9"],"accept-encoding":["gzip, deflate"],"accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7"],"user-agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"],"upgrade-insecure-requests":["1"],"cache-control":["max-age=0"],"connection":["keep-alive"],"host":["yue.blue"],"content-length":[""],"content-type":[""]}}
修改env文件未生效,请检查.env文件所有者和权限
[2023-03-12 18:17:23] production.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2, PDOException(code: 1044): SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge' at /www/wwwroot/yue.blue/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:2) [stacktrace] 你这个报错就是报错内容了
card_fpm-fcgi-2023-03-12.log