Explore Courses Blog Tutorials Interview Questions
0 votes
in SQL by (6.1k points)
edited by

I believe that I have successfully deployed my site( a basic one) to fortrabbit, but as soon as I connect to SSH to run some commands (such as php artisan migrate or php artisan db:seed) I get an error message:

SQLSTATE[HY000] [2002] No such file or directory

At some point the migration must have worked, because my tables are there - but this doesn't explain why it isn't working for me now. 

1 Answer

0 votes
by (12.7k points)

The error message indicates that the MySQL connection via socket is tried (which isn't supported).

In the context of Laravel (artisan), you almost certainly want to use a different / the correct environment. Eg: php artisan migrate --env=production (or whatever environment) check here.

Interested in SQL ? Check out this SQL Certification by Intellipaat.

For more information visit :

Browse Categories