Author |
Message |
broose
Regular


Joined: Feb 17, 2006
Posts: 94
|
Posted:
Thu Jun 29, 2006 1:25 am |
|
i have droped my databasetables but when i try to upload the backup i get this message "Can't create database 'xxxxxxxxx'; database exists"
cheers |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Jun 29, 2006 4:34 am |
|
It seems that problem is how you are backing up and restoring. The restore you're using expects that database not to be present, not just the tables. If you rename or delete the database, you should be able to restore it. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
broose

|
Posted:
Thu Jun 29, 2006 11:20 am |
|
i tried to rename the database but it just says i dont have permission, when i make a backup how do i do it so that only the tables are saved?
cheers |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Thu Jun 29, 2006 12:57 pm |
|
If you mean just the tables and not the data that is in them, you could do that through phpmyadmin if your host has provided you with that facility. |
|
|
|
 |
manunkind
Client

Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM
|
Posted:
Fri Jun 30, 2006 6:12 am |
|
Couldn't you just edit your backup file and remove the first line where it's trying to create the database? Then it should just start creating and populating the tables. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
Guardian2003

|
Posted:
Fri Jun 30, 2006 8:04 am |
|
Well that would be another option but you would have to be careful if the backup contained data as it would insert it again. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Jul 05, 2006 5:52 pm |
|
broose wrote: | i tried to rename the database but it just says i dont have permission, when i make a backup how do i do it so that only the tables are saved?
cheers |
If you are using phpMyAdmin to export your database, you need to be IN the database first, where you are seeing all the tables in the right-hand panel in a list. From there, when you go to Operations --> Export, you will now see a textbox with the full list of tables. Select them all, elect to "Drop Table if exists" and now you won't have the "CREATE DATABASE" anymore in your export... |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
|