Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: MySql virtualization problem


Member

Status: Offline
Posts: 6
Date:
MySql virtualization problem
Permalink   
 


Hello,

 

I crated a package with MySql 5.0.3. 

In the package editor I can see all the Files. In the Custom Event -> On start (Virtualized) I added a new command: "c:\MySql\bin\mysql-nt --install mysql"  (this will install mysql as a service)

 

The problem is that at start I get an error message: Could not execute (Error=87, MyPID=1940) 

 

Thank you



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Hello starhu,

Three questions to start:

1. Do you have a Specific command in Startup, or do you have a Display menu?
2. If you have a Specific command in Startup, what is it?
3. Had you launched your package before adding your Custom event?



__________________


Member

Status: Offline
Posts: 6
Date:
Permalink   
 

Hello,

 

Thank you for your reply.

"1. Do you have a Specific command in Startup, or do you have a Display menu?"2. If you have a Specific command in Startup, what is it?

I deleted the Startup, so now it is empty.

3. Had you launched your package before adding your Custom event?

Without any Custom event it gives me Could not execute Error=2

It is interesting that my Mysql test consist of the MySql folder and a folder in which is a simple Exe file to display a mysql table in a grid (I created the Exe).
In the folder created by Cameyo I can find the exe, but the Mysql folder doesn't contain every file I can see in the Package editor.

If it helps I can upload the files to Ftp to have a look, just tell me which files to copy (I am a beginner with Cameyo).

 

Thank you very much

 

 

 

 



__________________


Member

Status: Offline
Posts: 6
Date:
Permalink   
 

I found out that I cannot start anything within the virtualized box with Startup setting.

For example if I choose MySoft\Test\Test.exe , it will give error.

If I choose an external file (on the target computer) as c\totalCmd\TotalCmd.exe, it works.

I suppose the Cameyo puts a wrong path when I choose Test.exe, so instead of "MySoft\Test\Test.exe" it should be something else. I also tried to put "%CAMEYO_BASEDIRNAME%\MySoft\Test\Test.exe" but the result was the same.

 



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Yes, please do upload.  Just the Cameyo package should be sufficient for now, e.g. MySql.cameyo.exe.



__________________


Senior Member

Status: Offline
Posts: 268
Date:
Permalink   
 

Actually MySoft\Something is not a correct path because it has no drive .
Try C_\MySoft...

__________________


Member

Status: Offline
Posts: 6
Date:
Permalink   
 

Hello,

Sorry for the late reply.

I had many hours trying and experimenting with Cameyo.

Now I have the following settings:

Startup: C_\MySQL5\bin\mysqld-nt.exe   Parameters: console

Advanced / Custom events /On start (virtualized)        C_\StarSoft\Teszt\Virt.exe

And I have the MySql directory and the Virt.exe under the Files tab, and every file is set "Deployed: extracts immediately..."

I set the storage under the exe directory so as I can see that every file is deployed (and it is).

When running the virtualized program on the other computer the "Startup: C_\MySQL5\bin\mysqld-nt.exe" doesn't give error message (so I assume it starts without errors) however the custom event doesn't start. If it would start, clicking the Button1 would show some rows from the database in the grid

I uploaded the project under http://starsoft.hu/ideig/appname.6334.cameyo.exe

Thank you very much!

 

 

 

 

 



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

1. Try changing Startup Parameters from console to --console

2. Under Custom events, change underscore to colon, i.e. C_\StarSoft\Teszt\Virt.exe should be C:\StarSoft\Teszt\Virt.exe; don't forget to click Apply after making the change (you should see the underscore change on the left side before clicking OK)



__________________


Member

Status: Offline
Posts: 6
Date:
Permalink   
 

Hello,

 

Thank you for your reply.

1.After applying "hanging Startup Parameters from console to --console" I could see the console (image attached) but it is interesting that it says that ibdata1 doesn't exist because it is in the MySql\Data folder

2. I changed (under Custom events) C:\StarSoft\Teszt\Virt.exe; (although after saving it the semicolon disappeared) and the Virt.exe started.
When pressing the Button1 I got an error message "table test.a doesn't exist" but I am sure this error is because of issue 1. (that the ibdata1 wasn't correctly found)

Thank you

 

 



Attachments
__________________


Member

Status: Offline
Posts: 6
Date:
Permalink   
 

I realized that in mysql.ini the basedir is set to a certain directory. How can I deal with this using virtualization?
The "basedir" may vary depending where the user will copy my application...

Thank you

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard