Skip to content
SPONSORS

Connecting to Your Database

Just like on Acquia, Lando will automatically configure your application to connect to its local database and cache. Note that in some cases, such as when the user has purposefully removed the sourcing of the ${project}-settings.inc file, this will not work.

If you find yourself in this situation and need to manually connect to the database or cache credentials for each are below:

Note that the host is not localhost but database and cache for mysql and memcache respectively.

yaml
# Database
database: acquia
username: acquia
password: acquia
host: database
port: 3306

# Cache
host: cache
port: 11211

You can get also get the above information, and more, by using the lando info command or you can check out the environment variable called LANDO INFO as it contains useful information about how your application can access other Lando services.