Possible Duplicate:
How do I connect to a MySQL Database in Python?
There is a way to connect python with a mysql db?
I found something, but seems to is only for windows and I’m working with linux.
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.
You can use the MySQL-Python package. Search your disto’s package database first before installing from source (you probably already have it there). Be aware that all database packages do (our should) adhere to the Python DB API. This provides a standardized interface to all databases.
If you are comfortable with writing SQL, then that should suffice. If you prefer to query and define data in pure python I would also recommend SQLAlchemy.