diff --git a/frappe/commands/utils.py b/frappe/commands/utils.py index 9099012a5f..1e253b6709 100644 --- a/frappe/commands/utils.py +++ b/frappe/commands/utils.py @@ -493,9 +493,12 @@ def mariadb(context, extra_args): """ Enter into mariadb console for a given site. """ + from frappe.utils import get_site_path + site = get_site(context) frappe.init(site=site) frappe.conf.db_type = "mariadb" + os.environ["MYSQL_HISTFILE"] = os.path.abspath(get_site_path("logs", "mariadb_console.log")) _enter_console(extra_args=extra_args)