ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How can I see the current DB MYSQL hostname through the bench command?

database

#1

how can I see the current DB hostname through the bench command?


#2

The host is localhost by default.

If you’re referring to the username, it’s the same as db_name in:

[your-bench]/sites/[your-site]/site_config.json

#3

Thanks for your reply.

actually i’m looking for separate the DB from my app server , I’ve moved the database successfully but i have no idea where i have to update the db-hostname and credentials to connect to the new DB.

i updated the site_config.json file as below , but i have seen it’s still using the old database

{
db_name: *****
db_password:*****
db_host: “********.com:3306”

}