Embedded MySQL 5 Server
Embedded MySQL 5 Server
Hi,
I'm currently doing some tests with the embedded Server and the MyDAC components. Everything works fine when I use the MySQL 4.0 or 4.1 libmysqld.dll, but with the version 5.0 of the MySQL server, I can't get a connection. Is this problem known to someone and maybe there is a workaround.
I'm currently doing some tests with the embedded Server and the MyDAC components. Everything works fine when I use the MySQL 4.0 or 4.1 libmysqld.dll, but with the version 5.0 of the MySQL server, I can't get a connection. Is this problem known to someone and maybe there is a workaround.
Hmm.. so maybe I'm doing something wrong... I'm using your demo application embedded.exe, and here is what is written in the my.ini file located under c:\windows
Exactly this configuration works, if I use the libmysqld.dll file from MySQL 4.0 or 4.1, but not with 5.0.6 beta version... Mayme I need to do some more configuration, and you can tell me... Thanks for your support.
Code: Select all
[Embedded.exe]
datadir=C:/Programme/Borland/Delphi6/MyDac/Demos/Embedded/data
basedir=C:/Programme/Borland/Delphi6/MyDac/Demos/Embedded/
I now installed the latest build of version of 3.55, and get the error
"A call to an mysql_server_init failed" !
The version of MyDAC 4 beta, I could not compile my projects under Delphi 6, since the compiled DCU units cannot be read from my Delphi6 SP 2, so I could not perform any test.
Any other suggestions?
PS: Sorry to insist on this point, but I need MySQL 5 indeed, to include views and stored procedures in the DB.
"A call to an mysql_server_init failed" !
The version of MyDAC 4 beta, I could not compile my projects under Delphi 6, since the compiled DCU units cannot be read from my Delphi6 SP 2, so I could not perform any test.
Any other suggestions?
PS: Sorry to insist on this point, but I need MySQL 5 indeed, to include views and stored procedures in the DB.
> I now installed the latest build of version of 3.55, and get the error
> "A call to an mysql_server_init failed" !
Possible reasons and their solutions:
- At the same machine another local server is running. Check a list of started services.
- Incorrect settings in my.ini. Remove from my.ini sections [Embedded.exe] and [Embedded]
> Any other suggestions?
Could you start usual MySQL 5.0 server?
> The version of MyDAC 4 beta, I could not compile my projects under Delphi 6,
> since the compiled DCU units cannot be read from my Delphi6 SP 2, so I could not
> perform any test.
We compiled MyDAC 3.55 and 4.0 at the same version Delphi 6 UP2
> "A call to an mysql_server_init failed" !
Possible reasons and their solutions:
- At the same machine another local server is running. Check a list of started services.
- Incorrect settings in my.ini. Remove from my.ini sections [Embedded.exe] and [Embedded]
> Any other suggestions?
Could you start usual MySQL 5.0 server?
> The version of MyDAC 4 beta, I could not compile my projects under Delphi 6,
> since the compiled DCU units cannot be read from my Delphi6 SP 2, so I could not
> perform any test.
We compiled MyDAC 3.55 and 4.0 at the same version Delphi 6 UP2
This is right, but nothing changes if I stop this server. Same error.Ikar wrote:Possible reasons and their solutions:
- At the same machine another local server is running. Check a list of started services.
SameIkar wrote:- Incorrect settings in my.ini. Remove from my.ini sections [Embedded.exe] and [Embedded]
YesIkar wrote:Could you start usual MySQL 5.0 server?
My Delphi tells me, that CLRClasses unit was compiled with a different version of System.RTLVersion. I don't know, if the other DCU files are OK, since the compiler only gives this single message.Ikar wrote:We compiled MyDAC 3.55 and 4.0 at the same version Delphi 6 UP2
Version 5.0.6 betaIkar wrote:Please specify the exact version of MySQL 5.0 that you use.
I use the libmysqld.dll file that is installed during setup of MySQL 5.0.6 beta.Ikar wrote:Is it possible that used libmysqld.dll from another version that standard server?
You wrote some lines above, that your tests were successful with MySQL 5.0.4 - maybe this is the interesting point. I would like to test ist with this version too, but I would need the corresponding libmysqld.dll file
What do you mean? MySQL Server 5 ist NOT running. I'm just trying to use the embedded server. With MySQL 5 Server and the MyDAC components, the connection works fine.Ikar wrote:Do you have new records in errors log in MySQL\Data?
I am just start using the embedded server using MyDAC version 4 with MySQL Server 5.0.
I cannot even run the demo.
Couple of questions:
1) I cannot find the libmysqld.dll in MySQL folder (it appears in the Adobe folder instead)
2) I copy the demo source code into another folder called:
"C:\Temp\Embedded"
How do I setup the BaseDir and DataDir ?
3) Do I need to setup in the my.ini ?
4) Any instructions/exampls on setting up the TMyEmbConnection properties ?
I cannot even run the demo.
Couple of questions:
1) I cannot find the libmysqld.dll in MySQL folder (it appears in the Adobe folder instead)
2) I copy the demo source code into another folder called:
"C:\Temp\Embedded"
How do I setup the BaseDir and DataDir ?
3) Do I need to setup in the my.ini ?
4) Any instructions/exampls on setting up the TMyEmbConnection properties ?
Plase see our answer in http://crlab.com/forums/viewtopic.php?t=2099
CLRClasses
I Have This Error TOO. How i can to fix it.Tom Peiffer wrote: My Delphi tells me, that CLRClasses unit was compiled with a different version of System.RTLVersion. I don't know, if the other DCU files are OK, since the compiler only gives this single message.