@click.command(u'mysql')
@pass_context
def mysql(context):
 site = get_site(context)
 frappe.init(site=site)
 msq = find_executable(u'mysql')
 os.execv(msq, [msq, u'-u', frappe.conf.db_name, (u'-p' + frappe.conf.db_password), frappe.conf.db_name, u'-h', (frappe.conf.db_host or u'localhost'), u'-A'])

@ click . command ( u'mysql' ) @ pass_context def mysql ( context ) : site = get_site ( context ) frappe . init ( site = site ) msq = find_executable ( u'mysql' ) os . execv ( msq , [ msq , u'-u' , frappe . conf . db_name , ( u'-p' + frappe . conf . db_password ) , frappe . conf . db_name , u'-h' , ( frappe . conf . db_host or u'localhost' ) , u'-A' ] )
start mariadb console for a site .