Python, CGI, MySQL -> 'Error 2004: Can't create TCP/IP socket (10106)'

Gerhard Häring gerhard.haering at gmx.de
Sat Sep 7 09:35:26 EDT 2002


Doru-Catalin Togea wrote in comp.lang.python:
> I am using Python 2.2 on a win 2000 Pro computer to interact with
> mysql, by means of the MySQLdb module. My non-CGI scripts work as
> expected. 
> 
> I have now installed a webserver (Savant 3.1) am I try to connect to
> mysql by means of CGI and still MySQLdb. My scripts fail now with
> the 'Error 2004: Can't create TCP/IP socket (10106)' error message.

> Anyone who can recommand a free webserver which interacts well with
> MySQL by means of pythonic CGI scripts on Win 2000 Pro?

There's nothing special about MySQL, but I can recommend Apache, even
on Windows.

> [...] These functions work when the script connects to the
> mysql-server directly, but fail when a webserver is in between.

Just guessing: Maybe you're using IIS and the CGI scripts don't have
the privilege to create sockets?

-- Gerhard



More information about the Python-list mailing list