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 when running php artisan migrate #27

Closed
dillfrescott opened this issue Nov 5, 2022 · 5 comments
Closed

Error when running php artisan migrate #27

dillfrescott opened this issue Nov 5, 2022 · 5 comments
Labels
stale No recent activity

Comments

@dillfrescott
Copy link

dillfrescott commented Nov 5, 2022

root@cross-minisrv:/dropspace# php artisan migrate

   Illuminate\Database\QueryException 

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

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:716
    712▕         // If an exception occurs when attempting to run a query, we'll format the error
    713▕         // message to include the bindings with SQL, which will make this exception a
    714▕         // lot more helpful to the developer instead of just the database's errors.
    715▕         catch (Exception $e) {
  ➜ 716▕             throw new QueryException(
    717▕                 $query, $this->prepareBindings($bindings), $e
    718▕             );
    719▕         }
    720▕     }

      +33 vendor frames 
  34  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@leventdev
Copy link
Owner

Seems like something with your DB?

I'd try the following options:

  1. Try php artisan migrate:fresh

  2. Check if the port, host matches the server.

  3. Check if the user has correct permissions.

These are the options that pop into my head, but i'm not in front of a computer to actually check them.

@dillfrescott
Copy link
Author

dillfrescott commented Nov 5, 2022

Ok. I'll have to work out whats wrong with the db!

@dillfrescott
Copy link
Author

dillfrescott commented Nov 7, 2022

I absolutely cannot get this app to run. I've tried three or 4 different databases and they all throw a similar error. Even on the docker container someone made and mentioned in the other issue, that I never even modified...

@leventdev
Copy link
Owner

Have you installed it following the readme? Do you have the right DB extensions installed for php?

@dillfrescott
Copy link
Author

I'll have to check the docker container. I'd like to assume so but I guess you never know till you check haha

@leventdev leventdev added the stale No recent activity label Apr 10, 2023
@stale stale bot closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No recent activity
Projects
None yet
Development

No branches or pull requests

2 participants