Jojo Siao

Icon

enjoying life

Querying MySQL tables with Python and MySQLdb

Previously I made a  blog post regarding installing mod_python. Now I will share with you how to query mysql tables with Python and MySQLdb.

Installing MySQLdb

If we want to check if mysqldb is already installed, type ‘python’ on the commandline and then, type ‘import MySQLdb’. If it does not respond to an error, it means you have it already installed.

Checking MySQLdb

Checking MySQLdb

Read the rest of this entry »

Installing mod_python

I want to share to you how I was able to add python support on to my fedora server.

First, you must check your server if you have already Python installed by simply typing python on the command line.

Checking installed Python on server

Checking installed Python on server

Read the rest of this entry »