Connection refused (SQL: select * from information_s chema.tables where table_schema = apidemo and table_name = migrations)

LARAVEL 执行:

 $ php artisan migrate

报错 ,把 .env文件里的

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306

 换成:

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306

详情:https://stackoverflow.com/questions/48455341/laravel-php-sqlstatehy000-2002-php-network-getaddresses-getaddrinfo-faile 

posted @ 2018-05-04 21:49  一轮明月随潮涌  阅读(1235)  评论(0编辑  收藏  举报