The distributed binaries DO NOT have SSL support. If you start a server
and execute the command 'SHOW VARIABLES LIKE "%ssl%" and it returns have_openssl = 'false' ( NO ) ,
you will have to re-compile Mysql. Currently, I believe the only SSL support in Mysql is through OpenSSL,
so unless you have OpenSSL installed on your system you'll have to wait for a future release.
1) Download and unpack the Mysql source tarball. CD to the directory where you unpacked it.
2) Before you start compiling Mysql, you may have to change the configure script depending on
where you have OpenSSL installed, or Mysql won't find the OpenSSL library.
configure only checks the following directories looking for openssl/ssl.h:
/usr/ssl/include /usr/local/ssl/include /usr/include /usr/include/ssl /opt/ssl/include /opt/openssl/include /usr/local/ssl/include /usr/local/include
and these directories for libssl.a:
/usr/ssl/lib /usr/local/ssl/lib /usr/lib/openssl /usr/lib /opt/ssl/lib /opt/openssl/lib /usr/local/lib/
If Mysql doesn't find OpenSSL in one of these directories, it won't compile with support for OpenSSL,
but if you don't notice the error message, you won't find out until you've finished compiling and start up
your server. Compiling mysql with the option --with-openssl=/path/to/openssl fails, because the configure
script only handles the values --with-openssl[=yes] or --with-openssl=no and not a path, so the behavior
is unspecified and it does nothing (this probably should be submitted as a bug report). If you have OpenSSL
installed anywhere else, you will have to edit the file named configure in the source directory. It searches for
OpenSSL starting at line 20863 (in version 4.0.12) -- just add the path to where you have OpenSSL installed
(line 20879 for the include directory and line 20887 for the lib directory).