phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. You can easily add it to your Lando app by adding an entry to the services key in your app's .lando.yml.

Supported versions


# PhpMyAdmin example
name: pma

# Start with a basic LEMP recipe
recipe: lemp

# Add in a proxy route to phpmyadmin

# Add in phpmyadmin

  # Override the appsever to add some environment variables and install an extra VIM package
      - apt-get update -y
      - apt-get install vim -y
          MYCONFIGVAR1: secretpasscode

  # Add in another database to help with this example
    type: mariadb

  # Add a phpmyadmin db frontend

    # Use the latest version of phpmyadmin
    type: phpmyadmin

    # The databases you want to look at, this will default to a service called
    # "database"
    # You might want to run `lando info` on your app to see what databases you
    # have available
      - database
      - database2

    # Optionally load in a custom config file. This is relative to the app root
    # You will not need to import the standard library or manage backends in this
    # file. Those are handled automatically.
    # config:

    # There are various envvars you can specify to further customize how your
    # pma works.
    # See:
    # overrides:
      # services:
        # environment:
            # PMA_ARBITRARY: when set to 1 connection to the arbitrary server will be allowed
            # PMA_HOST: define address/host name of the MySQL server
            # PMA_VERBOSE: define verbose name of the MySQL server
            # PMA_PORT: define port of the MySQL server
            # PMA_HOSTS: define comma separated list of address/host names of the MySQL servers
            # PMA_VERBOSES: define comma separated list of verbose names of the MySQL servers
            # PMA_USER: define username to use for config authentication method
            # PMA_PASSWORD: define password to use for config authentication method
            # PMA_ABSOLUTE_URI: define user-facing URI

# Add a lando vim command
    service: appserver

You will need to rebuild your app with lando rebuild to apply the changes to this file. You can check out the full code for this example over here.

results matching ""

    No results matching ""