Two libraries for Mysql.
I’ve always used _mysql because it’s simpler.
Can anyone tell me the difference, and why I should use which one in certain occasions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MySQLdb uses DB-API (described in PEP 249) which should be preferred, since it’s common to all database drivers. IMHO there is no advantage in going low-level with
_mysql. I’d rather think of using higher level libraries, like SQLAlchemy, instead.