Anyone using Python to access PHPbb's MySQL database on a web server?

Joe Francia usenet at soraia.com
Tue Jun 3 23:55:54 EDT 2003


Robert Oschler wrote:
> I want to read/write the MySQL database associated with the data belonging
> to the PHPbb forum running on my web site (which I administer, site and
> PHPbb forum).  My web site is hosted with a good web hosting company, but
> that means that the computer is not onsite.  Also the account I have does
> not allow for telnet or ssh session access.  I can run PHP scripts without
> problem, but not Python scripts or the mod_python module.
> 
> I want to run Python programs locally on my Win2k box to read/write the
> PHPbb.MySQL database(s).  I have Python 2.2.x with the venerable WingIDE
> debugger running on my Win2k box.  Has anyone done any Python programming
> like this?   If so, I'd be very interested in what you had to do to get it
> working, especially in the area of any available python libraries/modules to
> help with the MySQL access.
> 

You can use MySQL for Python 
(http://sourceforge.net/projects/mysql-python), but I'd guess that if 
your hosting provider doesn't allow telnet or ssh, they probably don't 
allow remote access to the MySQL server, either.  You may want to just 
install phpMyAdmin instead (or get a different host - I've used 
www.phpwebhosting.com before, they were always good, and allowed Python 
scripts and would sometimes install things if you asked, like mod_python.)

jf





More information about the Python-list mailing list