1. Home
  2. Computing & Technology
  3. Python

Reading from a MySQL Database With Python

From , former About.com Guide

1 of 6

Introducing MySQLdb!

In this tutorial, we will query a MySQL database for a value which we take from user input. To do this, we use a class to represent the table of the database and a loop to iterate through the table.

Perhaps the easiest Python module to use with MySQL is MySQLdb. It is available from Sourceforge. The main documentation on this module may also be found at Sourceforge here.

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Database Programming
  5. Reading Python Data From a MySQL Database - Reading from a MySQL Database With Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.