Embedded demo: How to run it

Embedded demo: How to run it

Postby ManUtd » Thu 20 Oct 2005 03:00

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 ?
ManUtd
 
Posts: 24
Joined: Thu 20 Oct 2005 02:48

Postby Ikar » Thu 20 Oct 2005 13:28

Please try MySQL 4.1, because MySQL Embedded Server 5.0 has some critical problems.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby ManUtd » Thu 20 Oct 2005 23:52

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 ?
ManUtd
 
Posts: 24
Joined: Thu 20 Oct 2005 02:48

Postby Ikar » Fri 21 Oct 2005 08:52

It's enough to copy actual version of MySQL 4.1 libmysqld.dll to exe folder.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby ManUtd » Sun 23 Oct 2005 08:19

Where can I find the libmysqld.dll ?
I can only find libmysql.dll
ManUtd
 
Posts: 24
Joined: Thu 20 Oct 2005 02:48

Postby ManUtd » Sun 23 Oct 2005 11:32

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 ?
ManUtd
 
Posts: 24
Joined: Thu 20 Oct 2005 02:48

Postby ManUtd » Sun 23 Oct 2005 11:37

Ah, in addition, I found that the
CreateDir('.\data')
CreateDir('.\data\Test')
are failed.

These 2 subdirectories are not created.

What is the '.' means ?
ManUtd
 
Posts: 24
Joined: Thu 20 Oct 2005 02:48

Postby Ikar » Mon 24 Oct 2005 12:54

> 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
Last edited by Ikar on Mon 24 Oct 2005 12:56, edited 1 time in total.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby Ikar » Mon 24 Oct 2005 12:54

> 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
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components