[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mysql et problème de charset



bonjour, 

On me demande de transferer une base mysql local chez ovh (via phpmyadmin)

Je passe les problèmes de taille de fichiers et les insert into global par 
table, 

En local (essai fait sans l'option charset et avec comme param : 
latin1_swedish_c et latin1) : 
mysqldump --skip-opt --default-character-set=latin1_swedish_ci --add-drop-table 
$MyUser $MyPass $Base --tables $i > $FicOut$i

j'ai une table qui me retourne cela comme erreur ches ovh :
Erreur

requête SQL : 

CREATE TABLE `articles_swift_trading_2` (
`id` smallint( 4 ) unsigned NOT NULL ,
`id_ordre` tinyint( 2 ) unsigned NOT NULL default '0',
`ref_fournisseur` varchar( 15 ) COLLATE latin1_general_ci NOT NULL default '',
`nom_fr` varchar( 50 ) COLLATE latin1_general_ci NOT NULL default '',
`nom_us` varchar( 50 ) COLLATE latin1_general_ci NOT NULL default '',
`description_fr` text COLLATE latin1_general_ci,
`description_us` text COLLATE latin1_general_ci,
`prix_ha_ht_euro` decimal( 6, 2 ) unsigned NOT NULL default '0.00',
`marge` decimal( 5, 2 ) NOT NULL default '0.00',
`id_categorie` smallint( 4 ) unsigned NOT NULL default '0',
`id_sous_categorie` smallint( 4 ) unsigned default NULL ,
`sexe` tinyint( 1 ) unsigned NOT NULL default '2',
`id_fournisseur` tinyint( 2 ) unsigned NOT NULL default '0',
`poids` smallint( 5 ) unsigned default NULL ,
`port` decimal( 6, 2 ) unsigned default NULL ,
`id_couleur` tinyint( 2 ) unsigned default NULL ,
`tailles_dispo` varchar( 50 ) COLLATE latin1_general_ci default NULL ,
`type_taille` varchar( 10 ) COLLATE latin1_general_ci default NULL ,
`photo` tinyint( 1 ) unsigned NOT NULL default '0',
PRIMARY KEY ( `id` )
)

MySQL a répondu:
#1064 - You have an error in your SQL syntax.  Check the manual that 
corresponds to your MySQL server version for the right syntax to use 
near 'collate latin1_general_ci NOT NULL default '',
  `nom_fr` varch 



Comment puis-je m'en sortir ? y'a-t-il des risques de dommages collatéraux 
(comment les éviter ?)



Reply to: