PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > delete all database and restore
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
delete all database and restore

Réponse
 
LinkBack Outils de la discussion
Vieux 08/11/2007, 01h17   #1
nobody
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut delete all database and restore

I got an old mysql server with outdated databases

I want to delete all the databases and import a new set from a dump file.


I have like ten databases currently on there. What do i do to import my
current data on this server?


  Réponse avec citation
Vieux 08/11/2007, 01h23   #2
nobody
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

I basically want to replace all the databases from one dump file I have. How
do I restore the databases from one dump file?
"nobody" <nobody@nobody.com> wrote in message
news:fgtkig$i7a$2@news.Stanford.EDU...
>I got an old mysql server with outdated databases
>
> I want to delete all the databases and import a new set from a dump file.
>
>
> I have like ten databases currently on there. What do i do to import my
> current data on this server?
>



  Réponse avec citation
Vieux 08/11/2007, 05h52   #3
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

"nobody" <nobody@nobody.com> wrote in
news:fgtkup$ilr$2@news.Stanford.EDU:

> I basically want to replace all the databases from one dump file I
> have. How do I restore the databases from one dump file?


mysql -u <username> -p < 'path/to/dump/file.sql'

i suppose that answer could've been found at the google though.
  Réponse avec citation
Vieux 09/11/2007, 00h58   #4
nobody
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

I have like 10 databases all backup to a single sql file. how do i restore
this to all database?

when i do mysql -u -p < backup.sql

I get

ERROR 1049 at line 24: Unknown database '`admin`'

what does this mean? I have a database in there called admin

how do I import all of them
"Good Man" <heyho@letsgo.com> wrote in message
news:Xns99E1F345EAA3Esonicyouth@216.196.97.131...
> "nobody" <nobody@nobody.com> wrote in
> news:fgtkup$ilr$2@news.Stanford.EDU:
>
>> I basically want to replace all the databases from one dump file I
>> have. How do I restore the databases from one dump file?

>
> mysql -u <username> -p < 'path/to/dump/file.sql'
>
> i suppose that answer could've been found at the google though.



  Réponse avec citation
Vieux 09/11/2007, 16h10   #5
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

"nobody" <nobody@nobody.com> wrote in
news:fh07qu$n4$2@news.Stanford.EDU:

> I have like 10 databases all backup to a single sql file. how do i
> restore this to all database?
>
> when i do mysql -u -p < backup.sql
>
> I get
>
> ERROR 1049 at line 24: Unknown database '`admin`'
>
> what does this mean? I have a database in there called admin
>
> how do I import all of them
> "Good Man" <heyho@letsgo.com> wrote in message
> news:Xns99E1F345EAA3Esonicyouth@216.196.97.131...
>> "nobody" <nobody@nobody.com> wrote in
>> news:fgtkup$ilr$2@news.Stanford.EDU:
>>
>>> I basically want to replace all the databases from one dump file I
>>> have. How do I restore the databases from one dump file?

>>
>> mysql -u <username> -p < 'path/to/dump/file.sql'
>>
>> i suppose that answer could've been found at the google though.

>
>
>


Didja look at line 24?

Are you sure you have a database called "admin" and not "Admin"?

Please don't top post thanks.
  Réponse avec citation
Vieux 09/11/2007, 18h52   #6
nobody
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

>
> Didja look at line 24?
>
> Are you sure you have a database called "admin" and not "Admin"?
>
> Please don't top post thanks.


Yes there is a database called admin.

I am doing a restore from a mysql 5.x to a mysql 3.x server.

is that a problem?


  Réponse avec citation
Vieux 09/11/2007, 20h42   #7
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete all database and restore

"nobody" <nobody@nobody.com> wrote in news:fh26pb$db5$2@news.Stanford.EDU:

>>
>> Didja look at line 24?
>>
>> Are you sure you have a database called "admin" and not "Admin"?
>>
>> Please don't top post thanks.

>
> Yes there is a database called admin.
>
> I am doing a restore from a mysql 5.x to a mysql 3.x server.
>
> is that a problem?


why are you going backwards? 3.x is practically ancient.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h59.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11906 seconds with 15 queries