|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MDB2 Manager CreateDatabase confusion
I'm trying to have MDB2 create a new database but i'm confused as to how it can be done. I've tried using CreateDatabase, and it does indeed create a database but it doesn't assign the currently logged in user any privileges, and once the script has finished the new database can no longer be access by the web app.
All this works if you use a root account but thats a little too much to ask of people wanting to use my web app. Any ideas? Thanks |
|
#2
|
|||
|
|||
|
RE: MDB2 Manager CreateDatabase confusion
Ah, actually what I wrote previously is all nonsense.... I'll try again...
I'm trying to have MDB2 create a new database but i'm confused as to how it can be done. In the context of a Web Application setup script...As far as I can figure out the process would have to be something like this... 1 Request the login/pass of the root account as well as a more restricted account for keeping permanently and using as the day-to-day database login. 2 Login with the root details and create the database and grant the day-to-day account access to the new database. 3 Disconnect as root and continue from then on as the day-to-day account. My problem is, I can't find any function in the MDB2 package for controlling the grant tables. Or to do anything related to database users in fact. Any Ideas? |
|
#3
|
|||
|
|||
|
RE: MDB2 Manager CreateDatabase confusion
correct, there is currently no way to manage user access rights via the MDB2 API
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > MDB2 Manager CreateDatabase confusion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|