PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > Move data from one db to another?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Move data from one db to another?

Réponse
 
LinkBack Outils de la discussion
Vieux 12/12/2007, 19h57   #1
Brian Dunning
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Move data from one db to another?

I have similar (not identical) tables in two different db's. I want to
merge all the data from one into the other, and will be dropping the
original. There will be some duplication of keys so some rows will
need to be ignored. Problem is these are on two different servers on
different machines. How's the easiest way to handle this?
  Réponse avec citation
Vieux 12/12/2007, 22h18   #2
Brian Dunning
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Move data from one db to another?

OK, I have all my data on the new machine in a SQL file with 664,000
insert statements. But when I try to run it like this from the mysql
command line:

source filename.sql;

It starts to work, but after a few seconds the server freezes up with
"too many connections". How do I avoid this?
  Réponse avec citation
Vieux 13/12/2007, 01h49   #3
mgainty@hotmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Move data from one db to another?

Hi Brian

tough to say without looking at the script
http://www.php.net/function.mysql-connect
suggests allowing the current thread to sleep a bit to wait for the resource
to become available

M--
----- Original Message -----
Wrom: CLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGS
To: <mysql@lists.mysql.com>
Sent: Wednesday, December 12, 2007 5:18 PM
Subject: Re: Move data from one db to another?


> OK, I have all my data on the new machine in a SQL file with 664,000
> insert statements. But when I try to run it like this from the mysql
> command line:
>
> source filename.sql;
>
> It starts to work, but after a few seconds the server freezes up with
> "too many connections". How do I avoid this?
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=mgainty@hotmail.com
>
>


  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 06h01.


É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 1,76884 seconds with 11 queries