[GH-ISSUE #54] Error during db migrate #38

Closed
opened 2026-02-26 02:31:53 +03:00 by kerem · 7 comments
Owner

Originally created by @atkawa7 on GitHub (Dec 15, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/54

$ php artisan init
php artisan key:generate
php artisan migrate --force
php artisan db:seed --force
[Symfony\Component\HttpKernel\Exception\HttpException]

Originally created by @atkawa7 on GitHub (Dec 15, 2015). Original GitHub issue: https://github.com/koel/koel/issues/54 $ php artisan init php artisan key:generate php artisan migrate --force php artisan db:seed --force [Symfony\Component\HttpKernel\Exception\HttpException]
kerem closed this issue 2026-02-26 02:31:53 +03:00
Author
Owner

@NamPNQ commented on GitHub (Dec 15, 2015):

Are you setting in .env file?

<!-- gh-comment-id:164738777 --> @NamPNQ commented on GitHub (Dec 15, 2015): Are you setting in `.env` file?
Author
Owner

@juliusvdijk commented on GitHub (Dec 15, 2015):

Copy .env.example to .env and fill in your details.

<!-- gh-comment-id:164801575 --> @juliusvdijk commented on GitHub (Dec 15, 2015): Copy .env.example to .env and fill in your details.
Author
Owner

@jamnab commented on GitHub (Dec 15, 2015):

I get the error
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory

<!-- gh-comment-id:164840381 --> @jamnab commented on GitHub (Dec 15, 2015): I get the error [PDOException] SQLSTATE[HY000] [2002] No such file or directory
Author
Owner

@phanan commented on GitHub (Dec 16, 2015):

Make sure your database credentials work.

<!-- gh-comment-id:164971097 --> @phanan commented on GitHub (Dec 16, 2015): Make sure your database credentials work.
Author
Owner

@petehouston commented on GitHub (Dec 16, 2015):

@jamnab make sure to run MySQL service, create a database and assign the right permission to the user that is specified under .env file

<!-- gh-comment-id:164972873 --> @petehouston commented on GitHub (Dec 16, 2015): @jamnab make sure to run MySQL service, create a database and assign the right permission to the user that is specified under `.env` file
Author
Owner

@phanan commented on GitHub (Dec 16, 2015):

I'm going to close this issue to clean up the list. Feel free to continue discussing here though.

<!-- gh-comment-id:164974403 --> @phanan commented on GitHub (Dec 16, 2015): I'm going to close this issue to clean up the list. Feel free to continue discussing here though.
Author
Owner

@jamnab commented on GitHub (Dec 16, 2015):

I solved it by just entering the default values for mysql:

DB_HOST=localhost
DB_DATABASE=mysql
DB_USERNAME=root
DB_PASSWORD=''

Might be worthwhile to use these defaults settings in the wiki for easier setup.

<!-- gh-comment-id:165149574 --> @jamnab commented on GitHub (Dec 16, 2015): I solved it by just entering the default values for mysql: ``` DB_HOST=localhost DB_DATABASE=mysql DB_USERNAME=root DB_PASSWORD='' ``` Might be worthwhile to use these defaults settings in the wiki for easier setup.
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#38
No description provided.