I have a database set up in MySql Workbench and I want to connect and query the database from my python script.
I have no idea how to go about it.
I have a database set up in MySql Workbench and I want to connect
Share
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.
Look at Connector/Python (written by Geert). It is a pure Python implementation of the MySQL protocol, which means that it installs wherever Python installs.
You can find instructions on how to install it here: http://geert.vanderkelen.org/post/164/