Embedded connection parameters
Posted: Fri 10 Jun 2011 09:11
Hi.
I need to connect a TMyConnectio object to a mysql server embedded.
Everything is ok if i set the parameters 'datadir' and 'basedir' in a my.ini file placed in the C:/windows directory, but i would like to know if it's possible to set this parameters in other way, at run time.
In other words I don't want my component to read the my.ini file, but i need to set the basedir and datadir parameters. Is it possible? Any suggestion?
Thanks
I need to connect a TMyConnectio object to a mysql server embedded.
Everything is ok if i set the parameters 'datadir' and 'basedir' in a my.ini file placed in the C:/windows directory, but i would like to know if it's possible to set this parameters in other way, at run time.
In other words I don't want my component to read the my.ini file, but i need to set the basedir and datadir parameters. Is it possible? Any suggestion?
Thanks