This shows you the differences between two versions of the page.
sqldata_mariadb_connection [December 04, 2017 12:43 pm] sqlines |
sqldata_mariadb_connection [March 25, 2025 1:51 pm] (current) sqlines |
||
---|---|---|---|
Line 11: | Line 11: | ||
* //C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.dll// | * //C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.dll// | ||
- | If the MariaDB client is not available, go to MariaDB Download page http://www.mariadb.com and download //MariaDB Connector C//. | + | If the MariaDB client is not available, go to MariaDB Download page https://mariadb.com/downloads/connectors/ and download //MariaDB Connector C//. |
+ | |||
+ | ===== Setup SSL Connection ===== | ||
+ | |||
+ | When connecting to a MariaDB database you can get the following error: //"SSL connection is required. Please specify SSL options and retry"// | ||
+ | |||
+ | Use SSL connection options in //sqldata.cfg// or command line: | ||
+ | |||
+ | * -mysql_ssl_mode - SSL connection mode (--ssl-mode MySQL option), possible values are DISABLED, PREFERRED (default), REQUIRED, VERIFY_CA and VERIFY_IDENTITY | ||
+ | * -mysql_ssl_key - SSL private key file (--ssl-key MySQL option), the absolute path to the file | ||
+ | * -mysql_ssl_cert - SSL certificate file (--ssl-cert MySQL option), the absolute path to the file in PEM format | ||
+ | * -mysql_ssl_ca - SSL CA file (--ssl-ca option of MySQL CLI), the absolute path to the file in PEM format | ||
===== Troubleshooting Connection on Windows ===== | ===== Troubleshooting Connection on Windows ===== | ||
Line 30: | Line 41: | ||
Instead of the system PATH variable, you can also specify the path to MariaDB library using the //-mariadb_lib// option of SQLines Data configuration file //sqldata.cfg//. For example, you can set //-mariadb_lib=C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.dll// | Instead of the system PATH variable, you can also specify the path to MariaDB library using the //-mariadb_lib// option of SQLines Data configuration file //sqldata.cfg//. For example, you can set //-mariadb_lib=C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.dll// | ||
+ | |||
+ | ===== Troubleshooting Connection ===== | ||
+ | |||
+ | * **Error: TLS/SSL error: SSL is required, but the server does not support it** | ||
+ | |||
+ | Set the MARIADB_TLS_DISABLE_PEER_VERIFICATION environment variable to disable SSL on the client. | ||
+ | |||
+ | | export MARIADB_TLS_DISABLE_PEER_VERIFICATION=1 | | ||
Contact us at [[support@sqlines.com]] if you still have any connection problems. | Contact us at [[support@sqlines.com]] if you still have any connection problems. |