TMyConnection embedded
-
andrea.m86
- Posts: 25
- Joined: Thu 26 May 2011 10:36
TMyConnection embedded
Hi!
I need to connect to a MySQL Embedded Server with TMyConnection (I don't want to use TmyembConnection)
Is there a way to set the basedir and datadir parameters?
How can i refer to my directories?
Thanks!
I need to connect to a MySQL Embedded Server with TMyConnection (I don't want to use TmyembConnection)
Is there a way to set the basedir and datadir parameters?
How can i refer to my directories?
Thanks!
-
AndreyZ
Hello,
To work with Embedded MySQL server using the TMyConnection component, you should set the TMyConnection.Options.Embedded option to True. The basedir and datadir parameters can be set in the [mysqld] section of the my.ini file. Note that you should also place the libmysqld.dll library to the System directory, or to the root directory of your application.
To work with Embedded MySQL server using the TMyConnection component, you should set the TMyConnection.Options.Embedded option to True. The basedir and datadir parameters can be set in the [mysqld] section of the my.ini file. Note that you should also place the libmysqld.dll library to the System directory, or to the root directory of your application.
-
andrea.m86
- Posts: 25
- Joined: Thu 26 May 2011 10:36
-
andrea.m86
- Posts: 25
- Joined: Thu 26 May 2011 10:36
-
AndreyZ
-
andrea.m86
- Posts: 25
- Joined: Thu 26 May 2011 10:36
-
AndreyZ
To solve the problem, you should add the [embedded] section to the my.ini file, and set the basedir and datadir parameters in this section. Here is an example:
Code: Select all
[embedded]
basedir="D:/Program Files/MySQL/MySQL Server 5.5/"
datadir="D:/Program Files/MySQL/MySQL Server 5.5/Data/"