Problèm importation fichier SQL

Fermé
Absot Messages postés 777 Date d'inscription mardi 28 octobre 2008 Statut Membre Dernière intervention 4 septembre 2020 - Modifié par Absot le 4/05/2010 à 19:27
Plumaline Messages postés 127 Date d'inscription lundi 16 avril 2007 Statut Membre Dernière intervention 9 novembre 2016 - 28 mai 2010 à 17:24
Bonjour, j'ai un petit souci pour importer mon fichier SQL sur mon ordinateur de bureau alors que ca fonctionne sur mon ordinateur portable..

En important mon fichier, j'ai cette erreur:
CREATE TABLE 'world2'.'City' ( 
'id' int( 11 ) NOT NULL AUTO_INCREMENT , 
'idCountry' int( 11 ) DEFAULT NULL , 
'Name' char( 35 ) CHARACTER SET latin1 NOT NULL DEFAULT '', 
'CountryCode' char( 3 ) CHARACTER SET latin1 NOT NULL DEFAULT '', 
'District' char( 20 ) CHARACTER SET latin1 NOT NULL DEFAULT '', 
'Population' int( 11 ) NOT NULL DEFAULT '0',  
PRIMARY KEY ( 'id' ) USING BTREE, 
KEY 'fk_constraint_city_country' ( 'idCountry' ) , 
CONSTRAINT 'fk_constraint_city_country' FOREIGN KEY ( 'idCountry' ) REFERENCES 'Country' ( 'id' ) 
) ENGINE = InnoDB AUTO_INCREMENT =4080 DEFAULT CHARSET = utf8; 

MySQL a répondu:Documentation 
#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 'USING BTREE, 
  KEY 'fk_constraint_city_country' ('idCountry'), 
  CONSTRAINT 'fk_' at line 8  


La différence entre mon ordinateur de bureau et mon portable est que j'utilise XAMPP (version que j'ai téléchargé y a 2 mois sur leur site) sur le bureau et WAMP sur le portable, cela fonctionne également sur mon ordinateur de cours.. :/

Que puis-je faire mis à part installer également WAMP sur mon ordinateur de bureau?
A voir également:

2 réponses

Absot Messages postés 777 Date d'inscription mardi 28 octobre 2008 Statut Membre Dernière intervention 4 septembre 2020 44
4 mai 2010 à 23:01
Personne ne sait svp?
0
Plumaline Messages postés 127 Date d'inscription lundi 16 avril 2007 Statut Membre Dernière intervention 9 novembre 2016 6
Modifié par Plumaline le 28/05/2010 à 17:25
Mmh.. Vire les quotes au nom de ta table [..] Et revérifie les contraintes de clés.. =T


http://www.manuelphp.com/mysql/create-table.php
0