[GH-ISSUE #210] Missing database info in .env #148

Closed
opened 2026-02-26 02:32:17 +03:00 by kerem · 3 comments
Owner

Originally created by @Isaiahjm on GitHub (Jan 31, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/210

I'm pretty new to github. Sorry if I'm doing something wrong by submitting my info as an issue.

Just recently went to do a fresh install of the new release (v2.0.0). running php artisan koel:init would result in a database connection error. After some troubleshooting I opened the .env file inside ~/koel and noticed some database info was missing.

going strictly by the debian tutorial, it should look like this

DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=koel
DB_USERNAME=koel-db-user
DB_PASSWORD=koel-pass

Originally created by @Isaiahjm on GitHub (Jan 31, 2016). Original GitHub issue: https://github.com/koel/koel/issues/210 I'm pretty new to github. Sorry if I'm doing something wrong by submitting my info as an issue. Just recently went to do a fresh install of the new release (v2.0.0). running php artisan koel:init would result in a database connection error. After some troubleshooting I opened the .env file inside ~/koel and noticed some database info was missing. going strictly by the debian tutorial, it should look like this > DB_CONNECTION=mysql > DB_HOST=localhost > DB_DATABASE=koel > DB_USERNAME=koel-db-user > DB_PASSWORD=koel-pass
kerem closed this issue 2026-02-26 02:32:17 +03:00
Author
Owner

@conorccamp commented on GitHub (Jan 31, 2016):

I was getting the same error so I commented out DB_CONNECTION and DB_Host. That solved my unable to connect to database error but now I'm facing this one:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'koeluser'@'localhost' (using password: YES)

<!-- gh-comment-id:177660774 --> @conorccamp commented on GitHub (Jan 31, 2016): I was getting the same error so I commented out DB_CONNECTION and DB_Host. That solved my unable to connect to database error but now I'm facing this one: [PDOException] SQLSTATE[HY000] [1045] Access denied for user 'koeluser'@'localhost' (using password: YES)
Author
Owner

@Isaiahjm commented on GitHub (Jan 31, 2016):

@cctextur Are you running as root? Also make sure your password for the database is correct depending on how you set it up. I just used the one from the tutorial

$ sudo php artisan koel:init

DB_PASSWORD=koel-pass

<!-- gh-comment-id:177661286 --> @Isaiahjm commented on GitHub (Jan 31, 2016): @cctextur Are you running as root? Also make sure your password for the database is correct depending on how you set it up. I just used the one from the tutorial `$ sudo php artisan koel:init` > DB_PASSWORD=koel-pass
Author
Owner

@phanan commented on GitHub (Feb 1, 2016):

I think it's clear in the install guide right before running php artisan koel:init:

Now modify .env with your details.

<!-- gh-comment-id:177692279 --> @phanan commented on GitHub (Feb 1, 2016): I think it's clear in the install guide right before running `php artisan koel:init`: > Now modify .env with your details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#148
No description provided.