Page 1 of 1

Embedded demo: How to run it

Posted: Thu 20 Oct 2005 03:00
by ManUtd
I have manually created folders: database and test under the 'data'.

For TMyEmbConnection, I set the followings:
1)TMyEmbConnection.username
2)TMyEmbConnection.password

What should I set the TMyEmbConnection.database ?
If I have created a database called "employee" in MySQL 5, should I set this property to "employee".

Fo TMyTable, I set the TableName property to one of the tables in the database "employee".

Besides these changes, what else I need to change in order to run this demo ?
I added the subfolders data/mysql and data/database under the executable folder.
What files do I need to added into these folders ?

Posted: Thu 20 Oct 2005 13:28
by Ikar
Please try MySQL 4.1, because MySQL Embedded Server 5.0 has some critical problems.

Posted: Thu 20 Oct 2005 23:52
by ManUtd
I'll try MySQL 4.1.

Could you tell me what should I do to run the Embedded demo ?
What files I should put into the subfolders ?

Posted: Fri 21 Oct 2005 08:52
by Ikar
It's enough to copy actual version of MySQL 4.1 libmysqld.dll to exe folder.

Posted: Sun 23 Oct 2005 08:19
by ManUtd
Where can I find the libmysqld.dll ?
I can only find libmysql.dll

Posted: Sun 23 Oct 2005 11:32
by ManUtd
Finally I found this libmysqld.dll in Adobe directory, I put it in System32 and also in the same folder as the Embedded demo directory.

Now I run the demo connecting with MySQL 4.1 but got an exception:
"A call to an mysql_server_init failed.
Access violation at address 004047D3 in module 'Embedded.exe'. Read of address 79171BE1 C:\temp\mysql demo\embedded\.\share\charsets\index - The system cannot find the path specified"

Actually I cannot find the '.' folder created inside the demo.

How come the demo is so difficult to run ?

Posted: Sun 23 Oct 2005 11:37
by ManUtd
Ah, in addition, I found that the
CreateDir('.\data')
CreateDir('.\data\Test')
are failed.

These 2 subdirectories are not created.

What is the '.' means ?

Posted: Mon 24 Oct 2005 12:54
by Ikar
> C:\temp\mysql demo\embedded\.\share\charsets\index - The system cannot
> find the path specified"

Please check if you have C:\temp\mysql demo\embedded\share\charsets\index
folder.

> What is the '.' means ?

"Nothing" or "Current folder". For example, "C:\temp\.\share" and "C:\temp\share" are synonyms. You can read details in MSDN

Posted: Mon 24 Oct 2005 12:54
by Ikar
> Finally I found this libmysqld.dll in Adobe directory

You should use libmysqld.dll from your MySQL 4.1 server distributive.
Also you can copy "share" folder from MySQL to demo.
Usually it's enough to run demo.

Note: You should download full MySQL server package (http://dev.mysql.com/get/Downloads/MySQ ... /from/pick) to get libmysqld.dll