Add PHPMyAdmin to Lando

PHPMyAdmin is a database tool that has been around since 1998. You can use it to see your database structure and data and make changes. Be careful though, it's easy to break a Drupal site by messing with it's database.

 

Installing it is really easy, you just need to add this to your .lando.yml file:

services:
  phpmyadmin:
    type: phpmyadmin
    hosts:
      - database
proxy:
  phpmyadmin:
    - phpmyadmin.drupal7.lndo.site

Here, "database" refers to the container name of the default drupal database in lando.

proxy lets us define a URL for the service.

 

Results:

Lando info with phpmyadmin

Screenshot of phpmyadmin in lando

Read more about phpmyadmin config in lando here:

https://docs.lando.dev/config/phpmyadmin.html#supported-versions