我使用mysql db創建了Laravel應用程序。我試圖用這個碼頭工人,compose.yml在泊塢窗來運行它:Docker容器中的「基本表或視圖未找到」錯誤
load_balancer:
image: tutum/haproxy
links:
- web
ports:
- "80:80"
cache:
image: redis
web:
image: andrewmclagan/nginx-hhvm
links:
- db
- cache
volumes:
- ./:/var/www
environment:
- APP_ENV=local
- DB_DATABASE=regappbase
- DB_PASSWORD=Q1w2e3r4t5
- DB_HOST=db
- VIRTUAL_HOST=laravel.local
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: Q1w2e3r4t5
MYSQL_DATABASE: regappbase
在我的主機數據庫中有三個表:
- 遷移
- password_resets
- 用戶
當我運行應用程序並嘗試引用數據庫時,我有這樣的錯誤:
QueryException in Connection.php line 715:SQLSTATE [42S02]:找不到基表或視圖:表'regappbase.users'不存在(SQL:select * from users where email =(e-mail @ ghhjghj77))
如何創建數據庫regappbase?我不需要存儲數據,只有模式