# Database access manual configuration

**URL:** https://discourse.roots.io/t/database-access-manual-configuration/25486
**Category:** trellis
**Created:** 2023-06-06T11:03:01Z
**Posts:** 4
**Showing post:** 2 of 4

## Post 2 by @strarsis — 2023-06-06T16:54:29Z

Primarily I access the databases using `WP CLI` (with [WP CLI config file](https://make.wordpress.org/cli/handbook/references/config/)).

By default the database server on Trellis is not accessible from the outside (except you are using an external database server).  
You can set up a SSH tunnel or expose the database server - but then ensure it is properly secured.

Related discussion:

> [@Remote MySQL Install](https://discourse.roots.io/t/remote-mysql-install/4862/4):
>
> Just connect to the box via SSH and use MySQL? Don’t need to install anything [image]

[https://discourse.roots.io/t/remote-mysql/4395](https://discourse.roots.io/t/remote-mysql/4395)

---

_[View the full topic](https://discourse.roots.io/t/database-access-manual-configuration/25486)._
