0

我在 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

这是除 drupal8 之外的所有其他数据库 在此处输入图像描述

4

1 回答 1

0

your host in phpMyAdmin services should be the same as the one hosting the database (drupal8):

phpmyAdmin:
    type: phpmyadmin
    hosts:
    - drupal8
    mysql57:
    type: mysql:5.7
于 2019-10-31T22:00:36.330 回答