mercredi 25 février 2015

using shared db between guest and host Vmware Workstation

I installed Ubuntu on a virtual machine on my windows 8.1 laptop, im trying to use a DB(sqlite) on a shared file, so both OS can use the db ( im coding in ubuntu and viewing the results on windows).


im using sqlite browser on windows, and c/c++ on linux


by now i've mount a file ( under /mnt/db ) with the db.


I can query SELECT on the DB on linux ( i can do everything on windows)


I CANT insert any value to any table, is not failing opening the database, is failing inserting , i get the message ( the DB is LOCKED )


i tried to change permissions to the file but its imposible , cause the mount, im mounting it on root using the administrator user on windows.


the command im using is the following:



mount -t cifs -o username=||ADMIN||,password=||PASS|| //hostIP/db /mnt/db



and this is the error im getting:



SQL error: database is locked



is there anyway i can access to the db and update/create/insert from remote access/shared file?


PD: if i copy the db, i can do anything to that copiedDB.


Aucun commentaire:

Enregistrer un commentaire