By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,002 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,002 IT Pros & Developers. It's quick & easy.

How to use MySQL without MySQLdb module

P: n/a
Hi all.
I am using a hosting space with python cgi.
But this host haven't got MySQLdb installed.

Is there any methods to connect to Mysql without MySQLdb.
Or any other DB methods with original python release?

Thanx

Dec 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jia Lu si divertito a scrivere:
Hi all.
I am using a hosting space with python cgi.
But this host haven't got MySQLdb installed.
Are you sure there's no other mysql db interface installed? If the DB is on
the very same server, it should be. If it isn't, and you'd like to access
an external firewall, you should check whether the firewall of your host
really allows outbound connections.

If it does, you should look for (or write by yourself) a pure-python db-api
implementation of mysqldb.

Otherwise, you could connect directly to the port of your mysql database
and just write raw sql and pull raw data from it, but this will prevent you
from the chance of using more enhanced db tools like sqlalchemy, and it's
highly discouraged as well as it's really prone to errors.

--
Alan Franzoni <al***************@gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
Remove .xyz from my address in order to contact me.
-
GPG Key Fingerprint (Key ID = FE068F3E):
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
Dec 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.