i've just installed MySQLdb on Win2K SP2 Python 2.1.1 Visual C++ 6.0 SP5.
To successfully install the software I've to change the _mysql.c file at line 193.
I've deleted two CRs.
At this line the constant "_mysql_connect__doc__" is defined and it seems to be a problem to VC.
"My" definition:
static char _mysql_connect__doc__[] =
"connect() -- returns a MYSQL connection object. Exclusive use of\n\keyword parameters strongly recommended. Consult the MySQL C API documentation for more details.\n\
\n\
host -- string, host to connect to or NULL pointer (localhost)\n\
user -- string, user to connect as or NULL (your username)\n\
passwd -- string, password to use or NULL (no password)\n\
db -- string, database to use or NULL (no DB selected)\n\
port -- integer, TCP/IP port to connect to or default MySQL port\n\
unix_socket -- string, location of unix_socket to use or use TCP\n\
client_flags -- integer, flags to use or 0 (see MySQL docs)\n\
conv -- dictionary, maps MySQL FIELD_TYPE.* to Python functions which\n\
convert a string to the appropriate Python type\n\
connect_time -- number of seconds to wait before the connection\n\
attempt fails.\n\
compress -- if set, compression is enabled\n\
init_command -- command which is run once the connection is created\n\
read_default_file -- see the MySQL documentation for mysql_options()\n\
read_default_group -- see the MySQL documentation for mysql_options()\n\
";
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi there,
i've just installed MySQLdb on Win2K SP2 Python 2.1.1 Visual C++ 6.0 SP5.
To successfully install the software I've to change the _mysql.c file at line 193.
I've deleted two CRs.
At this line the constant "_mysql_connect__doc__" is defined and it seems to be a problem to VC.
"My" definition:
static char _mysql_connect__doc__[] =
"connect() -- returns a MYSQL connection object. Exclusive use of\n\keyword parameters strongly recommended. Consult the MySQL C API documentation for more details.\n\ \n\ host -- string, host to connect to or NULL pointer (localhost)\n\ user -- string, user to connect as or NULL (your username)\n\ passwd -- string, password to use or NULL (no password)\n\ db -- string, database to use or NULL (no DB selected)\n\ port -- integer, TCP/IP port to connect to or default MySQL port\n\ unix_socket -- string, location of unix_socket to use or use TCP\n\ client_flags -- integer, flags to use or 0 (see MySQL docs)\n\ conv -- dictionary, maps MySQL FIELD_TYPE.* to Python functions which\n\ convert a string to the appropriate Python type\n\ connect_time -- number of seconds to wait before the connection\n\ attempt fails.\n\ compress -- if set, compression is enabled\n\ init_command -- command which is run once the connection is created\n\ read_default_file -- see the MySQL documentation for mysql_options()\n\ read_default_group -- see the MySQL documentation for mysql_options()\n\ ";