FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Connecting to a MySQL database using Python





davidv
Hi,

I was little unsure whether to post this in 'others' or 'PHP and MySQL' but anyway, I'm trying to connect to a MySQL database in Python. Could anyone help?

Thanks.
saberlivre
Maybe this site helps you in your purpose
http://www.tutorialspoint.com/python/python_database_access.htm
jcreus
davidv wrote:
Hi,

I was little unsure whether to post this in 'others' or 'PHP and MySQL' but anyway, I'm trying to connect to a MySQL database in Python. Could anyone help?

Thanks.


The best one I've heard of and used is called MySQLdb (http://mysql-python.sourceforge.net/). Very straightforward and easy to use.
davidv
I figured out how to connect to a MySQL database in Python using the MySQLdb module. It was a university assignment that due a few days ago that required me to connect to a database called WordNet (I don't know if anyone here has heard of it but it's a pretty cool database).

Anyway, thanks guys.
Related topics
mysql connection question
Cron Job to Backup MySQL Database
Mysql database problem
PHPBB MYSQL Database Question.
MySQL database for a forum
Mysql database size?
Connect to MySql database
Delete data from MySQL database problem!!
Problem connecting to MySQL database with PHP [RESOLVED]
Help importing CSV file into MySQL database
How to search in a MySQL - database
Connecting to 2 different Mysql database and tables?
Is there a better way to restore mysql database?
How do you Create a New Database using a php script?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.