To securely connect MySQL Data Access Components (MyDAC) to a MySQL server via TLS/SSL, use the TCRSSLIOHandler component. This component acts as an adapter between the database client and the TLS/SSL client, enabling secure data transmission through unprotected communication channels such as the internet.

The following diagram illustrates the communication flow between the database client and server using TCRSSLIOHandler.

myssliohandler

All data exchange between TMyConnection and TScSSLClient (which acts as the TLS/SSL client) is secure. Communication occurs entirely within the application through the methods of TCRSSLIOHandler.

 

Set up CRSSLIOHandler

1.Place the TCRSSLIOHandler component on your form.
2.Configure the TCRSSLIOHandler component's properties:
Storage – Select a storage object. For more information, see SSL/TLS client setup.
CACertName – Specify the server certificate.
CertName – Specify the client certificate.
3.Place the TMyConnection component on your form and configure it with your MySQL server connection details.
4.In the IOHandler property of TMyConnection, select the TCRSSLIOHandler object.
5.Connect to your MySQL server by setting the Connected property of TMyConnection to True.
SecureBridge Components, Copyright © 2007-2025 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support