Connecting Tech Pros Worldwide Help | Site Map

Connecting to a Mysql database using Active Python (Windows Vista)

Member
 
Join Date: Nov 2008
Posts: 61
#1: Mar 24 '09
Alright I'm just getting into Python for the first time so what do I need to do to be able to setup a connection string and start using a database in python.
I'm new to this so specifics would be apprecieated. What module do I need to install and where can I find it? Once I have the module, how do I go about installing it? Thanks for your help!
bvdet's Avatar
Moderator
 
Join Date: Oct 2006
Location: Nashville, TN
Posts: 1,563
#2: Mar 24 '09

re: Connecting to a Mysql database using Active Python (Windows Vista)


This link seems to have some good basic information about connecting to a DB. This link will describe an available Python interface.
Member
 
Join Date: Nov 2008
Posts: 61
#3: Mar 24 '09

re: Connecting to a Mysql database using Active Python (Windows Vista)


Quote:

Originally Posted by chanshaw View Post

Alright I'm just getting into Python for the first time so what do I need to do to be able to setup a connection string and start using a database in python.
I'm new to this so specifics would be apprecieated. What module do I need to install and where can I find it? Once I have the module, how do I go about installing it? Thanks for your help!

Alright after dong some more research I found out that Active Python 2.6 does not have support for mysqldb, so what I had to do was download and install active python 2.5 and then download MySQL-python-1.2.2.win32-py2.5.exe and now it works great! Thanks for the reply and anyone else that was looking for a solution for me.
bvdet's Avatar
Moderator
 
Join Date: Oct 2006
Location: Nashville, TN
Posts: 1,563
#4: Mar 24 '09

re: Connecting to a Mysql database using Active Python (Windows Vista)


Thank you for the update.

-BV
Reply