We just upgraded our MySql servers and they now required SSL connections. Took me a couple days to dig out all the info I needed to make it work so I thought it may be useful for other people. I have added a new function, _EzmySql_SetOptions, and updated the DLLs to support SSL connections.
For my servers, these are the options I needed to set before opening the connection to the database.
If Not _EzMySql_Startup() Then
MsgBox(262144, "Error Starting MySql", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
If Not _EzMySql_SetOption($MYSQL_ENABLE_CLEARTEXT_PLUGIN, 1) Then
MsgBox(262144, "Error setting Option", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
If Not _EzMySql_SetOption($MYSQL_OPT_SSL_CA, $pathToCA) Then
MsgBox(262144, "Error setting Option", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
If Not _EzMySql_SetOption($MYSQL_OPT_SSL_CERT, $pathToCert) Then
MsgBox(262144, "Error setting Option", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
If Not _EzMySql_SetOption($MYSQL_OPT_SSL_KEY, $pathToKey) Then
MsgBox(262144, "Error setting Option", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
If Not _EzMySql_Open($dbip, $dbuser, $dbpw, "", $dbport) Then
MsgBox(262144, "Error opening Database", "Error: "& @error & @CR & "Error string: " & _EzMySql_ErrMsg())
Exit
EndIf
EZmySql.zip