Skip to content
Advertisement

Getting error of no such file or directory while doing command php artisan migrate on laravel on Ubuntu linux OS

I m in ubuntu 20.04.I installed fresh laravel and when i set all .env configuration, also database but getting error as below: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = laravel1 and table_name = migrations and table_type = ‘BASE TABLE’)

Here are my configuration code

.env

JavaScript

database.php

JavaScript

p.s : i have created new db name as laravel1 on phpmyadmin too.. please,help me to resolve it.. i tried various method ,but could not success:)

Advertisement

Answer

Are you running php artisan migrate? you should run

JavaScript

to install the initial migrate tables

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement