我在 Lando https://docs.lando.dev/中安装了 Drupal8 我在lando 文件中添加了 phpmyAdmin 服务问题是配置的数据库没有显示在 phpmyAdmin 中。
name: mydrupal8
recipe: drupal8
config:
webroot: /drupal
services: # Define your services
appserver: # Create a web server container
type: php:7.2 # Specify what version of php to use
via: apache # This could be nginx, should you choose so
webroot: www # Specify webroot
config: # If you want to add/edit
#server: config/apache/lamp.conf # Use an alternate apache config file
#conf: path/from/app/root/php.ini # Alter php configuration with a custom file
database: # Create a database server container
type: mysql
portforward: 3308
creds: # Specify what creds/db to use
user: drupal8
password: drupal8
database: drupal8
phpmyAdmin:
type: phpmyadmin
user: drupal8
password: drupal8
database: drupal8
hosts:
- mysql57
mysql57:
type: mysql:5.7