  | 
				Association Malfaisante des Irréductibles Sociopathes (Association loi 1901)   
				 | 
			 
		 
		 
	
		| Voir le sujet précédent :: Voir le sujet suivant   | 
	 
	
	
		| Auteur | 
		Message | 
	 
	
		Gangrene
 
  
  Inscrit le: 25 Jan 2004 Messages: 1618
 
  | 
		
			
				 Posté le: 09 Déc 2005 17:11    Sujet du message: Question technique pour les pros de MySQL | 
				     | 
			 
			
				
  | 
			 
			
				On importe un fichier csv dans MySQL en utilisant la commande suivante :
 
mysqlimport --local --host=xxxx.xxxx.fr --user=xxxx --password=xxxx --fields-terminated-by=; --delete --verbose --debug[=d:t: o,debug] ffs D:\dump\fichier.csv
 
 
Notre problème, c'est qu'en sortie, tout ce qu'on obtient est un message du genre "5446 warnings" sans plus d'explication. Il doit y avoir des options du debug à ajouter pour avoir la description des warnings, mais je ne sais pas ce qu'il faut faire.
 
 
Si l'un de vous connait la réponse...
 
 
Merci d'avance. _________________ Si un éléphant prend la défense d'un autre est-ce de l'altruisme ou du vol ? | 
			 
		  | 
	 
	
		| Revenir en haut | 
		 | 
	 
	
		  | 
	 
	
		BigGrizzly
 
  
  Inscrit le: 28 Jan 2004 Messages: 861
 
  | 
		
			
				 Posté le: 09 Déc 2005 19:16    Sujet du message:  | 
				     | 
			 
			
				
  | 
			 
			
				 	  | Citation: | 	 		  mysqlimport  Ver 2.8 Distrib 3.23.58, for pc-linux (i686)
 
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
 
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
 
and you are welcome to modify and redistribute it under the GPL license
 
 
Loads tables from text files in various formats.  The base name of the
 
text file must be the name of the table that should be used.
 
If one uses sockets to connect to the MySQL server, the server will open and
 
read the text file directly. In other cases the client will open the text
 
file. The SQL command 'LOAD DATA INFILE' is used to import the rows.
 
 
Usage: mysqlimport [OPTIONS] database textfile...
 
  -#, --debug[=...]     Output debug log. Often this is 'd:t ,filename`
 
  -?, --help            Displays this help and exits.
 
  --default-character-set=...
 
                        Set the default character set.
 
  --character-sets-dir=...
 
                        Directory where character sets are
 
  -c, --columns=...     Use only these columns to import the data to.
 
                        Give the column names in a comma separated list.
 
                        This is same as giving columns to LOAD DATA INFILE.
 
  -C, --compress        Use compression in server/client protocol
 
  -d, --delete          First delete all rows from table.
 
  -f, --force           Continue even if we get an sql-error.
 
  -h, --host=...        Connect to host.
 
  -i, --ignore          If duplicate unique key was found, keep old row.
 
  -l, --lock-tables     Lock all tables for write.
 
  -L, --local           Read all files through the client
 
  --low-priority        Use LOW_PRIORITY when updating the table
 
  -p, --password[=...]  Password to use when connecting to server.
 
                        If password is not given it's asked from the tty.
 
  -P, --port=...        Port number to use for connection.
 
  -r, --replace         If duplicate unique key was found, replace old row.
 
  -s, --silent          Be more silent.
 
  -S, --socket=...      Socket file to use for connection.
 
  -u, --user=#          User for login if not current user.
 
  -v, --verbose         Print info about the various stages.
 
  -V, --version         Output version information and exit.
 
  --fields-terminated-by=...
 
                        Fields in the textfile are terminated by ...
 
  --fields-enclosed-by=...
 
                        Fields in the importfile are enclosed by ...
 
  --fields-optionally-enclosed-by=...
 
                        Fields in the i.file are opt. enclosed by ...
 
  --fields-escaped-by=...
 
                        Fields in the i.file are escaped by ...
 
  --lines-terminated-by=...
 
                        Lines in the i.file are terminated by ...
 
 
Default options are read from the following files in the given order:
 
/etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf
 
The following groups are read: mysqlimport client
 
The following options may be given as the first argument:
 
--print-defaults        Print the program argument list and exit
 
--no-defaults           Don't read default options from any options file
 
--defaults-file=#       Only read default options from the given file #
 
--defaults-extra-file=# Read this file after the global files are read
 
 | 	  
 
 
C'est --verbose qu'il te manque ? _________________ Zoo-logique.org!
 
Oui, c'est moi Ocean... | 
			 
		  | 
	 
	
		| Revenir en haut | 
		 | 
	 
	
		  | 
	 
	
		Gangrene
 
  
  Inscrit le: 25 Jan 2004 Messages: 1618
 
  | 
		
			
				 Posté le: 09 Déc 2005 19:58    Sujet du message:  | 
				     | 
			 
			
				
  | 
			 
			
				Oui, a priori, le verbose ne marche pas. _________________ Si un éléphant prend la défense d'un autre est-ce de l'altruisme ou du vol ? | 
			 
		  | 
	 
	
		| Revenir en haut | 
		 | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
Vous ne pouvez pas poster de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas voter dans les sondages de ce forum
  | 
   
 
		 |