我想上传网站上的cPanel。 以下错误遇到
PDOException在Connector.php线47:SQLSTATE [HY000] [1045]访问被拒绝的用户 '哈桑' @ '本地主机'(使用密码:是)
我.ENV文件包含:
APP_ENV=local
APP_DEBUG=true
APP_KEY=4ZuW70AMILLsnvHkTJ1yraRoGqmx4Dzg
DB_HOST=localhost
DB_DATABASE=campaign
DB_USERNAME=hassan
DB_PASSWORD=password
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
和配置/ database.php中作为
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'campaign'),
'username' => env('DB_USERNAME', 'hassan'),
'password' => env('DB_PASSWORD', 'China125'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,]
可能是什么问题吗?