-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Illuminate\Database\QueryException #25
Comments
Hey ! Did you follow steps in the Installation section before ? Especially this one |
Yes I did.
…On Wed, 25 Apr 2018 at 00:28, Guillaume Briday ***@***.***> wrote:
Hey ! Did you follow steps in the Installation section before ?
Especially this one cp .env.example .env ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtnX71CCuM8EQH-gP4If1fu5DH9N0Wqks5tr5jxgaJpZM4TiaWM>
.
|
Ok, I've just tried and I have the same error. I think it's because mysql is not ready to handle connection. I've retried the command 3 times and it worked. I will check how to fix this, thanks ! |
Ok, let me try again. I also ran multiple times to no success. Thank you. |
More infos here https://docs.docker.com/compose/startup-order/ and here https://docs.docker.com/samples/library/mysql/ (at the end) |
I don't like the workarounds that much but PR are welcome. To use it until the fix, just run |
Cool, I'll check it out.
…On Wed, 25 Apr 2018 at 00:49, Guillaume Briday ***@***.***> wrote:
More infos here https://docs.docker.com/compose/startup-order/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtnXzfuiqIPtiNosGBDfltonFyiZiR8ks5tr53RgaJpZM4TiaWM>
.
|
Ok, much appreciated.
…On Wed, 25 Apr 2018 at 00:56, Guillaume Briday ***@***.***> wrote:
I don't like the workarounds that much but PR are welcome.
To use it until the fix, just run docker-compose up -d before the
migration
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtnX_QYhTCRd0tYw0A4lPramaLDsZKaks5tr59-gaJpZM4TiaWM>
.
|
I don't think people can make branches or pull requests for this project, but I was able to get a fresh clone of One thing I'll note is I had to delete the (gitignored) contents of [1] https://github.com/guillaumebriday/laravel-blog/blob/master/docker-compose.yml#L59 |
Hey ! Yep I had the issue with the latest version of the mysql image and i had to remove The support of mysql 8 is effective since this commit laravel/framework#23948 available in the 5.6.18. I need to upgrade the laravel version and try to upgrade the mysql too to check if it does not break anything. And yes the single quotes change nothing in the |
The documentation as a note about string interpolation for ports https://docs.docker.com/compose/compose-file/#ports
Even if I don't use port lower than 60 I will follow the documentation with double quotes everywhere Commit : 73be5b8 |
Please try to ssh into docker and then run command composer dump
and clear config with below command
and then check again it should work. |
I don't think it will fix the issue because by running this command you let mysql started, which is the problem here. The migration command run before mysql is ready :/ |
Yeah, doing the front-end build before the migration/seeds seems to have resolved it for me. Alternatively, connecting to the mysql server on |
I'll try to implement |
In the .env.example
and it works perfectly. |
Hum @AldoRG, how did you try ? Did you stop you containers before updating the |
I will try today 👍 |
it does not work @AldoRG |
find mysql.sock path and editing php.ini good luck |
I have same problem like this, I am using docker and laradock, this is my solution,
Hope this can help!! Thanks!! |
When I run
$ docker-compose run --rm blog-server php artisan migrate
, the first step of the 'Before Starting' section I get the following error message:Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = laravel-blog and table_name = migrations) at /application/vendor/laravel/framework/src/Illuminate/Database/Connection.php: 664
I'm using Valet.
The text was updated successfully, but these errors were encountered: