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

php artisan migrate give No such file or Directory found error #2830

Closed
yarkingulacti opened this issue Jan 30, 2021 · 2 comments
Closed

php artisan migrate give No such file or Directory found error #2830

yarkingulacti opened this issue Jan 30, 2021 · 2 comments

Comments

@yarkingulacti
Copy link

yarkingulacti commented Jan 30, 2021

Description:

I Dockerized my existing project which is created with laravel new <name> which is installed with compose require laravel/installer.

Then at parent folder of my project i git clone laradock and configured nginx/sites/default.conf and copied env-example into .env and configured the paths.

Then i run docker-compose up -d nginx mysql phpmyadmin command and it installed and everything is fine.

Then i run docker-compose exec workspace bash command and run php artisan migrate and it gave me this error:


  SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = deneme and table_name = migrations and table_type = 'BASE TABLE')

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:678
    674▕         // If an exception occurs when attempting to run a query, we'll format the error
    675▕         // message to include the bindings with SQL, which will make this exception a
    676▕         // lot more helpful to the developer instead of just the database's errors.
    677▕         catch (Exception $e) {
  ➜ 678▕             throw new QueryException(
    679▕                 $query, $this->prepareBindings($bindings), $e
    680▕             );
    681▕         }
    682▕

      +33 vendor frames
  34  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Expected Behavior:

I want my migrations to be created.

Context information:

Output of git rev-parse HEAD

{e2d2e9db9ee0a71c48841862e4cee2ea545bdd3a}

Output of docker version

{Docker version 20.10.2, build 2291f61}

Output of docker-compose version

{Docker version 20.10.2, build 2291f61}
{docker-compose version 1.27.4, build 40524192}

System info: Mac, Windows or Linux. Include which disto/version

{Windows 10 Pro Version 1909 Downloaded at 05.10.2019 OS compilition 18363.1316}

Steps to reproduce the issue:

  1. Run docker-compose up -d nginx mysql phpmyadmin
  2. Run docker-compose exec workspace bash
  3. Run php artisan migrate

Stacktrace & Additional info:

https://flareapp.io/share/x7XNn0Ym#F46

@stale
Copy link

stale bot commented Apr 30, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Apr 30, 2021
@stale
Copy link

stale bot commented May 23, 2021

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant