Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during db migrate #54

Closed
atkawa7 opened this issue Dec 15, 2015 · 7 comments
Closed

Error during db migrate #54

atkawa7 opened this issue Dec 15, 2015 · 7 comments

Comments

@atkawa7
Copy link

atkawa7 commented Dec 15, 2015

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

@NamPNQ
Copy link
Contributor

NamPNQ commented Dec 15, 2015

Are you setting in .env file?

@juliusvdijk
Copy link
Contributor

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

@jamnab
Copy link

jamnab commented Dec 15, 2015

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

@phanan
Copy link
Member

phanan commented Dec 16, 2015

Make sure your database credentials work.

@petehouston
Copy link

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

@phanan
Copy link
Member

phanan commented Dec 16, 2015

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

@phanan phanan closed this as completed Dec 16, 2015
@jamnab
Copy link

jamnab commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants