def mysql_execute(sql, user, password):

    sql = sql.replace('"', r'\"')
    return run('echo "%s" | mysql --user="%s" --password="%s"' % (sql, user, password))
Executes passed sql command using mysql shell.
dataset/ETHPy150Open ebu/radiodns-plugit/Deployment/plugit/plugit_server.py/mysql_execute