#NEWLINE# def mysql_execute( sql , user , password ) : #NEWLINE# #INDENT# 'Executes passed sql command using mysql shell.' #NEWLINE# sql = sql . replace ( '"' , '\\"' ) #NEWLINE# return run ( ( 'echo "%s" | mysql --user="%s" --password="%s"' % ( sql , user , user ) ) )