On the server
You can connect directly into your database server and invoke a database console from there. To do that, please refer to the terminal connection to servers documentation.
With a client
You can also open a firewall port in your database server to allow a remote machine to connect the it. This is possible using the Stack security page, and then you can use a database client from your local computer.