How to connect to the database using python?

18th Jul 2016, 5:10 PM
Ranjith kumar
Ranjith kumar - avatar
3 Answers
+ 1
Try pysql if you are using a mysql database. I'll assume you are. https://pypi.python.org/pypi/PyMySQL
18th Jul 2016, 9:35 PM
Gershon Fosu
Gershon Fosu - avatar
Another would be pymssql which works well for MSSQL
19th Jul 2016, 1:22 AM
jj Fer
jj Fer - avatar
most applications use a python framework, such as Django...it has several classes and methods for web, including secure data manipulation. trying to do it all by hand with standard python can be tricky, as security flaws sometimes never show as errors, just code that should be written differently.
22nd Jul 2016, 7:42 PM
Igor Busquets
Igor Busquets - avatar