Direct
Previous  Top  Next


This is the easiest and least hassle way of compiling your application and distributing it. If you set the TMySQLServer's DriverKind property to dtDirect, your application will be complete free of any additional dlls and files. There are no DriverProperties to set if you use this method.

Advantages:
·Simple distribution  
·Direct communications with your MySQL Server.  
·Possible waving of MySQL client licenses, because your are not including any MySQL code or libraries with your application.  

Disadvantages:
·It is possible that MySQL might eventually change the communication protocol of the MySQL server, which will then render your application incompatible if your clients upgrade their mysql server.  

Thus the biggest advantage of this method is also possibly the biggest disadvantage, because the Embedded and Library access methods use the libraries supplied by MySQL and are thus guaranteed to be compatible with even newer MySQL servers.

This access method has been made possible by the inclusion into MyComponents of Cristian Nicola's DirectMySQL
interface Open Source project.