fix: log mariadb console usage
This commit is contained in:
parent
ee03bf7518
commit
2d75dbb598
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue