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 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM