|
@@ -120,6 +120,13 @@ int Sql_Connect(Sql* self, const char* user, const char* passwd, const char* hos
|
|
|
return SQL_ERROR;
|
|
|
|
|
|
StringBuf_Clear(&self->buf);
|
|
|
+
|
|
|
+ unsigned int md = SSL_MODE_DISABLED;
|
|
|
+
|
|
|
+ if( mysql_options( &self->handle, MYSQL_OPT_SSL_MODE, &md ) ){
|
|
|
+ ShowSQL( "Your MySQL version does not understand \"MYSQL_OPT_SSL_MODE\" yet. Please consider upgrading - especially if you encounter SSL related error messages from your MySQL server.\n" );
|
|
|
+ }
|
|
|
+
|
|
|
if( !mysql_real_connect(&self->handle, host, user, passwd, db, (unsigned int)port, NULL/*unix_socket*/, 0/*clientflag*/) )
|
|
|
{
|
|
|
ShowSQL("%s\n", mysql_error(&self->handle));
|