如何在流明中配置.env文件?

时间:2019-02-08 03:51:20

标签: mysql database-migration lumen

我尝试过搜索和询问朋友,互联网或在此站点上,但是都失败了,我想以流明形式迁移数据库,这是我的.env设置

APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC

LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_twin
DB_USERNAME=root
DB_PASSWORD=root
UNIX_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

CACHE_DRIVER=file
QUEUE_CONNECTION=sync

所以当我进入php artisan migration时,我得到了这个错误

In Connection.php line 664:
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = db_twin and table_name = migrations)

In Connector.php line 70:
SQLSTATE[HY000] [2002] No such file or directory

感谢您的回答

0 个答案:

没有答案