Report this

What is the reason for this report?

How to find out my database location?

Posted on May 16, 2021

My developer is not responding and I need to find out where my database is located. How can I do that? I don’t see any in the Databases section, but my site is operating fine, so it got to be somewhere :)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

In case that you are not using a Managed database cluster, your database is mostlikely located on your server itself.

If you are using MySQL for example you could access the database by first accessing your server via SSH and then run the following command:

mysql 

This will open a MySQL command prompt where you could run your SQL queries.

Alternatively, depending on what you want to achieve once you access the database, you could configure an SQL client like MySQL Workbench as described here:

https://www.digitalocean.com/community/tutorials/how-to-connect-to-a-mysql-server-remotely-with-mysql-workbench

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.