laravel数据库配置

 

1.说明,查看laravel数据库配置

项目名/config/database.php     'default' => env('DB_CONNECTION', 'mysql')

 

2.数据开发数据库配置

APP_ENV=local
APP_KEY=base64:e0ghX3zfu7+onYrak2pAyyfhH9FEwDpyn+1vOIGqN6s=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=root
DB_PASSWORD=

-------------------------------------------------------------------------------

3.验证数据库是否配置成功


posted @ 2018-10-28 21:53  侠岚之弋痕夕  阅读(1584)  评论(0编辑  收藏  举报
Where is the starting point, we don't have a choice, but the destination where we can pursue!