Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
broose
Regular
Regular



Joined: Feb 17, 2006
Posts: 94

PostPosted: Thu Jun 29, 2006 1:25 am Reply with quote

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
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Thu Jun 29, 2006 4:34 am Reply with quote

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!
 
View user's profile Send private message
broose







PostPosted: Thu Jun 29, 2006 11:20 am Reply with quote

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

PostPosted: Thu Jun 29, 2006 12:57 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
manunkind
Client



Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Fri Jun 30, 2006 6:12 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
Guardian2003







PostPosted: Fri Jun 30, 2006 8:04 am Reply with quote

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

PostPosted: Wed Jul 05, 2006 5:52 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©