jpeprah
6 months ago
11
12
Laravel

Database error

Posted 6 months ago by jpeprah

I'm getting this error: ERROR: Can't connect to the database server. SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)

I have checked the .env file and also database.php, not sure why I'm still getting error.

APP_ENV=development APP_KEY=base64:3o7wKIPFK8oHTwx9fn6zhPAwbSTaF41Thylv6jFdgKY= APP_DEBUG=true APP_URL=http://localhost APP_LOCALE=en APP_VERSION=4.3

PURCHASE_CODE=deab1e4b-1d02-4e82-9c0d-c782677cd357 FORCE_HTTPS=false

DB_HOST=localhost DB_PORT=3306 DB_DATABASE=dignitystaffing DB_USERNAME=root DB_PASSWORD=K0f0ridua DB_SOCKET= DB_TABLES_PREFIX= DB_CHARSET=utf8 DB_COLLATION=utf8_unicode_ci DB_DUMP_BINARY_PATH=

IMAGE_DRIVER=imagick

CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync

LOG_CHANNEL=daily LOG_LEVEL=DEBUGBAR_ENABLED LOG_DAYS=2

FORM_REGISTER_HIDE_PHONE=false FORM_REGISTER_HIDE_EMAIL=false FORM_REGISTER_HIDE_USERNAME=true

SUBSCRIPTION=app_basic STRIPE_SECRET=secret-key STRIPE_PUBLIC=public-key

database.php:

Please sign in or create an account to participate in this conversation.