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
While Lando does not "officially" support specifying a patch version of this service you can try specifying one using overrides if you need to. This is not guaranteed to work so use at your own risk and take some care to make sure you are using a
debian flavored patch version that also matches up with the
minor versions of the service that we indicate above in "Supported versions".
Here are all the tags that are available for this service.
# PhpMyAdmin example name: pma # Start with a basic LEMP recipe recipe: lemp # Add in a proxy route to phpmyadmin proxy: pma: - pma.lemp.lndo.site # Add in phpmyadmin services: # Add in another database to help with this example database2: type: mariadb # Add a phpmyadmin db frontend pma: # 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 hosts: - 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: config.user.inc.php # There are various envvars you can specify to further customize how your # pma works. # # See: https://hub.docker.com/r/phpmyadmin/phpmyadmin/ # # 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
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.