dbForge Data Compare for MySQL allows simple and convenient installation and setup of embedded servers.
Embedded server is an easily installed server that is used by applications that do not require multi-user operations.
The following known constraints of embedded MySQL servers are caused by the servers themselves, and not by dbForge products. For troubleshooting tips, please refer to MySQL documentation.
1. Download the MySQL server installation package from the MySQL website.
2. Install the server.
3. Create a basedir directory for your embedded MySQL server.
4. Make sure you have libmysqld.dll available via the PATH environment variable; for example, place it in your Windows\System32 directory, or place it in the directory where Data Compare is installed.
5. Copy the share directory from the MySQL server installation directory to basedir.
6. Create a datadir folder for the data contained in basedir. Copy the mysql directory from your server installation directory to datadir.
Now you can configure and use your embedded MySQL server.
You can use either of the following ways to configure your embedded MySQL Server:
To use the my.ini file, you have to create it in the root Windows directory and configure the following sections:
[Server] - common settings for both common and embedded MySQL servers
[Embedded] - embedded server-specific settings
Note
You can learn more about the list of settings in the MySQL Reference Manual.
This is what the simplest content for my.ini looks like:
[embedded]
basedir=c:/servers/embedded/
datadir=c:/servers/embedded/data/
According to this configuration, the contents of the share directory can be found in C:\servers\embedded\share\, while the data is located in C:\servers\embedded\data. Note the use of forward slashes instead of backslashes.
1. In the Database menu, select New Connection to open the Database Connection Properties dialog.
2. Go to the Embedded tab.
3. Select the Use embedded server checkbox.
4. Clear the Use my.ini file checkbox and fill in the Base folder and Data folder fields if you want to set these directories manually without using the my.ini file.
5. Click Connect to establish the connection.