Join Club ShowMeDo to Learn Python!

This series is a part of Club ShowMeDo. Click to learn why you should join our club with a simple monthly subscription.

  • We teach Python and all the cool modules
  • Topics include beginner Python, GUIs, Web and Desktop Apps
  • Long, specially crafted video tutorials just for you
  • Club video tutorials extend our normal Free content
  • Save your time - we've done the research for you
  • Keep your skills up-to-date
  • Learn at your own pace, everything you need is shown to you
  • Over 12 hours of archived material are waiting for you in the club

Name: [008] Kyran Dale
Member: 104 months
Authored: 16 videos
Description: I'm one of the co-founders of Showmedo and an academic researcher by profession. My peripatetic path has taken me from a Philosophy degree via Artificial Intelligence and Evolutionary Robotics to a PhD in Neuroscience. I spent five years in a small room with a colony of reluctant bumble-bees, becomi ...

Connecting Python to the Database [ID:738] (3/5)

in series: An Introduction to Database Programming with Python

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

Connecting a Python script to a particular type of database requires a driver module. For example, to work with MySQL requires that the MySQLdb module be imported. In this video we will show you how to connect to a database and perform a simple query. The Python DBAPI means that this lesson is applicable to pretty much all common databases, including PostgreSQL, SQLite and many others.

A good starting point for information about the different drivers is the Python wiki.

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 451 (since July 30th)
  • Plays in last week: 0
  • Published: 74 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>








All comments excluding tick-boxed quick-comments

good intro for python and MySQL. I know the video start as if MySQL and MySQLdb is installed and running, but could you do video that deals with the problems of setting up MySQLdb on windows? Anyway, thanks for the video


very good. thank you.


very good video on basic DB connections using python. I appreciate the comparisons and step-by-step processing using a MySQL terminal as well as the script. Very informative!!!


this serie is just what I have been looking for... awesome work mate


It would have been helpful if you showed how to install packages in Python such as MySQLdb. After going through the install, unfortunately my import statement still won't work. I'm using Eclipse with Pydev on a Mac if that helps.


This was an excellent video Kyran. I learnt how to connect and bring back data, something I've been trying to understand for months now. It was really simple the way you explained it. I'm moving on to the next video now.


Video published, thanks for contributing to ShowMeDo


Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Kudos and Thanks for Kyran

Content

Feedback

Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.

feedback@showmedo.com