lando / phpmyadmin

The Official phpMyAdmin Lando Plugin
https://docs.lando.dev/phpmyadmin/
GNU General Public License v3.0
2 stars 1 forks source link

Drupal multisite databases not being displayed in PHPMyadmin #8

Closed prashantdsala closed 2 years ago

prashantdsala commented 2 years ago

Hello,

  1. Created Drupal 9 multisite with 2 subsites successfully
  2. Created a separate database for each site
  3. Logged in to PHPMyadmin databases for 2 subsites are not displayed there. Databases are present in MariaDB.
  4. However database for the main site is present as it is.

Lando version : v3.1.4 Here is .lando.yml

name: healsecurity_lando
recipe: drupal9
config:
  webroot: web
  php: '7.4'
  composer_version: '2.1.9'
  # via: apache:2.4
  via: nginx
  database: mariadb:10.4
  xdebug: false
services:
  phpmyadmin:
    type: phpmyadmin
    hosts:
      - database
  subsite1:
    type: mariadb:10.4
    portforward: true
    creds:
      user: drupal9
      password: drupal9
      database: subsite1
  subsite2:
    type: mariadb:10.4
    portforward: true
    creds:
      user: drupal9
      password: drupal9
      database: subsite2
proxy:
  appserver_nginx:
    - main.lndo.site
    - subsite1.lndo.site
    - subsite2.lndo.site

Attached is the screenshot of PHPMyadmin

localhost-49289-database-phpMyAdmin-5-0-2

Please let me know if I am missing any configurations.

Thanks Prashant

labboy0276 commented 2 years ago

@prashantdsala Have you tried doing this:

services:
  phpmyadmin:
    type: phpmyadmin
    hosts:
      - database
      - subsite1
      - subsite2
prashantdsala commented 2 years ago

@labboy0276

Yes tried it a couple of times but no luck.

prashantdsala commented 2 years ago

@labboy0276

I think there was some issue now it worked with the code you mentioned above. Thanks, closing this issue.