Database and cache services are started with portforward: true, so Lando publishes them on a random host port. Run lando info to find it:
bash
lando info --service dbjs
{
service: 'db',
type: 'mariadb',
creds: { user: 'upsun', password: 'upsun', database: 'main' },
external_connection: { host: '127.0.0.1', port: '63067' },
...
}Use external_connection plus creds in your database client. To pin the port, override the generated Lando service from the top-level services: block:
yaml
services:
db:
portforward: 3307config.overrides won't do this. It changes the Upsun configuration the recipe reads, not the Lando service it generates. See Overrides.