I hacked mine to work by defining HAVE_OPENSSL in _mysql.c so that SSL is compiled despite what mysql_config doesn't say:
diff -ur MySQL-python-1.2.3/_mysql.c python-mysqldb-1.2.3/_mysql.c --- MySQL-python-1.2.3/_mysql.c 2010-06-17 09:21:56.000000000 +0200 +++ python-mysqldb-1.2.3/_mysql.c 2012-08-16 08:23:36.567236117 +0200 @@ -475,6 +475,7 @@ MYSQL *conn = NULL; PyObject *conv = NULL; PyObject *ssl = NULL; +#define HAVE_OPENSSL 1 #if HAVE_OPENSSL char *key = NULL, *cert = NULL, *ca = NULL, *capath = NULL, *cipher = NULL;
I hacked mine to work by defining HAVE_OPENSSL in _mysql.c so that SSL is compiled despite what mysql_config doesn't say:
diff -ur MySQL-python- 1.2.3/_ mysql.c python- mysqldb- 1.2.3/_ mysql.c 1.2.3/_ mysql.c 2010-06-17 09:21:56.000000000 +0200 mysqldb- 1.2.3/_ mysql.c 2012-08-16 08:23:36.567236117 +0200
*capath = NULL, *cipher = NULL;
--- MySQL-python-
+++ python-
@@ -475,6 +475,7 @@
MYSQL *conn = NULL;
PyObject *conv = NULL;
PyObject *ssl = NULL;
+#define HAVE_OPENSSL 1
#if HAVE_OPENSSL
char *key = NULL, *cert = NULL, *ca = NULL,