MySQL Forums
Forum List  »  Connector/Python

SQL injection prevent
Posted by: Naveen M
Date: May 13, 2016 05:36PM

What can be done to prevent SQL injection

# connect to database via ssh-tunnel and run query
cnx = mysql.connector.connect(user='p11179711', password='VRandhawa51',
host='', port=server.local_bind_port,
cursor = cnx.cursor()
permissions = cursor.fetchall()

Options: ReplyQuote

Written By
SQL injection prevent
May 13, 2016 05:36PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.