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='127.0.0.1', port=server.local_bind_port,
database='db247_10000003')
cursor = cnx.cursor()
cursor.execute(query)
permissions = cursor.fetchall()

Options: ReplyQuote


Subject
Written By
Posted
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.