mysql - When I run "php artisan migrate" code in terminal I can't create table on http: // localhost / phpmyadmin /
one text
Solution:
using flags on command you use
php artisan migrate --env=productionmay solve problem in some casescheck file
app/config/database.phpfor relevant host key to be'host' => env('DB_HOST', '127.0.0.1'), not localhostcheck file
.envfor relevant line to beDB_HOST=127.0.0.1, not localhost