how can I see the current DB hostname through the bench command?
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
1 Like
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”
}