Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2017 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4b721a10fac9e6eb93dc436ca98b4319 to your computer and use it in GitHub Desktop.
Save anonymous/4b721a10fac9e6eb93dc436ca98b4319 to your computer and use it in GitHub Desktop.
Problema en tinker con SQLSTATE[HY000] [2002]
Al ejecutar lo siguiente para los proyecto cursolaravel5 y tutoriales-extra, me aparece lo siguiente:
App\User::all()
Illuminate\Database\QueryException with message 'SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `users`)'
En ambos casos el model se ubica en app/User.php
@antoniogarcia78
Copy link

Parece error de BD. Yo miraria primero si existe la tabla users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment