DAC for MySQL

FAQ - Question #3

Previous Next

Q. How can I set database connection properties (eg. coCompress) from code?

A. Try the following code:

mySQLDatabase1.ConnectOptions := mySQLDatabase1.ConnectOptions + [coCompress];

Don't forget to add mySQLTypes to your uses list.


Questions list