Skip to content
SPONSORS

Connecting to Your Database

Just like Pantheon, Lando will automatically configure your application to connect to its local database.

You can also check out the environment variable called LANDO INFO as it contains useful information about how your application can access other Lando services.

If you find that you still cannot connect to your database, which can happen if a local wp-config.php or settings.local.php is hijacking our automation, the default credentials are below:

Note that the host is not localhost but database.

yaml
database: pantheon
username: pantheon
password: pantheon
host: database
port: 3306

You can get also get the above information, and more, by using the lando info command.