aaronp
September 20th, 2009, 05:03 AM
Hi all,
I'm currently developing an application using python and it utilises a mysql database via mySqlDb. It works on my machine for testing with no issues, of course because I've configured it to do so and I have all the rights to do anything I need to.
I'm wondering, if I decide to package it for other people to use, how do I go about getting the mysql setup right when someone runs/installs the app?
e.g.
1. What if they don't have MySQL on their PC?
2. Even if they do have MySQL, how will my app be able to create databases without privileges to the existing mysql database?
3. If I they do allow a database to be created, won't they just be able to 'play' with the database via the backend/MySQL interface and then corrupt it so the program won't work properly?
I have this 'assumed' idea in my head that you package the app with it's own fresh copy of MySql and then install it, create privileges, db, tables etc. at the time of installation, and then the DB is completely quarantined from the broader system - not sure if this is realistic or not though??
Can anyone explain how it works, or point me to some resources?
thanks
Aaron
I'm currently developing an application using python and it utilises a mysql database via mySqlDb. It works on my machine for testing with no issues, of course because I've configured it to do so and I have all the rights to do anything I need to.
I'm wondering, if I decide to package it for other people to use, how do I go about getting the mysql setup right when someone runs/installs the app?
e.g.
1. What if they don't have MySQL on their PC?
2. Even if they do have MySQL, how will my app be able to create databases without privileges to the existing mysql database?
3. If I they do allow a database to be created, won't they just be able to 'play' with the database via the backend/MySQL interface and then corrupt it so the program won't work properly?
I have this 'assumed' idea in my head that you package the app with it's own fresh copy of MySql and then install it, create privileges, db, tables etc. at the time of installation, and then the DB is completely quarantined from the broader system - not sure if this is realistic or not though??
Can anyone explain how it works, or point me to some resources?
thanks
Aaron