Delphi Application - Conversion to Embedded MySQL
Posted: Sat 28 Jul 2018 00:03
I have a Delphi XE2 application which currently connects to a MySQL 5.5 database sever.
To convert this application to using MySQL embedded ie libmysqld.dll I have followed these steps ...
On the main form the TMyConnection component has been replaced with a TMyEmbConnection with the new settings for data locations and the installation set up as described at ... https://www.devart.com/dotconnect/mysql ... erver.html but adapted to the Delphi language. The MySQL server service has been stopped.
When the application runs there is an error message ...
"A call to an mysql_server_init failed.
C:\Users\<username>\AppData\Roaming\MySQL\.mylogin.cnf - The system cannot find the file specified"
I cannot find any mention of this cnf file being required or how to set it up.
It seems superfluous as all the server connection details are provided in the TMyEmbConnection component.
Can anyone assist with getting this running.
Thanks
To convert this application to using MySQL embedded ie libmysqld.dll I have followed these steps ...
On the main form the TMyConnection component has been replaced with a TMyEmbConnection with the new settings for data locations and the installation set up as described at ... https://www.devart.com/dotconnect/mysql ... erver.html but adapted to the Delphi language. The MySQL server service has been stopped.
When the application runs there is an error message ...
"A call to an mysql_server_init failed.
C:\Users\<username>\AppData\Roaming\MySQL\.mylogin.cnf - The system cannot find the file specified"
I cannot find any mention of this cnf file being required or how to set it up.
It seems superfluous as all the server connection details are provided in the TMyEmbConnection component.
Can anyone assist with getting this running.
Thanks