|
|
skar9363
发表于 2007-8-29 02:23:17
|
显示全部楼层
Regor_User:
@hw15,
To be honest, I don't know how our .BAK file was created, as it was generated by the technical support at another hosting company. I'm fairly sure it came out of an MS SQL 2000 database, and I'd guess they used Enterprise Manager or an equivalent. Uploading this MS SQL 2000 database directly to LunarPages' MyLittleAdmin through the Tools > Restore Wizard (Web Hosting) functionality is straightforward.
The only issue that we ran into is the username/schema problem. That seemed to arise because the username which created and administered records in the .BAK database (let's call this username "joeadmin" as an example) was not first created through Plesk at LunarPages. Therefore, when I restored the .BAK database on my first attempt, MyLittleAdmin automatically created "joeadmin" in the LunarPages MS SQL server but gave me no control or access over it. As a result, I could not access any of the tables that were restored. We could find no quick way to correct this username/schema misassignment through MyLittleAdmin (we would've needed a way to change all the tables from "joeadmin" schema/ownership to "dbo" schema/ownership). We did find a way to generate a script using Enterprise Manager that when run in MyLittleAdmin would fix the problem, but only one table at a time. Complicating matters, MyLittleAdmin does not allow you to administer the "joeadmin" username/schema in any way. Even after deleting all of the users and databases you created through Plesk, the "joeadmin" username/schema remains. You discover this since the next time you try to create a database, then you try to manually create "joeadmin", MyLittleAdmin reports that the username already exists. I had to open a support ticket at LunarPages and request that they delete the "joeadmin" database username for me.
To avoid this, make sure that before you install any MS SQL database using this MyLittleAdmin restore process, you create an empty database in Plesk, and you MUST add the username that is the main username in the database you are about to restore ("joeadmin" in this example). I also used the same password as was used in the backed up database, although I'm not sure if this is necessary (probably not a bad idea, though). Then, log in to MyLittleAdmin using "joeadmin", and perform the restore. Once the restore is complete, remember that you'll probably have to delete "joeadmin" and recreate it in Plesk before you can access MyLittleAdmin again (some kind of quirk with the system). Once you log back in to MyLittleAdmin, you should have full control over the restored data for that user, and any subsequent user you add using Plesk. You should find all table schema/ownership assignments are listed to "dbo" instead of "joedmin".
Hope this helps. Thanks for your detailed instructions earlier |
|