Bonjour les gens !
J´ai créé des tables sql hors ligne pour mon site, je les ai exportées (fichiers .sql), mais quand je veux les importer sur le "vrai" site en ligne, j´ai un message d´erreur (hop copier coller entier !)
Base de données scpgp sur le serveur localhost
Erreur
requête SQL :
CREATE TABLE `locations` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`ref` text NOT NULL ,
`prix` bigint( 20 ) NOT NULL default ´0´,
`surface` text NOT NULL ,
`bail` bigint( 20 ) NOT NULL default ´0´,
`secteur` text NOT NULL ,
`description` text NOT NULL ,
`pieces` text NOT NULL ,
`type` text NOT NULL ,
`nbphoto` tinyint( 4 ) NOT NULL default ´0´,
`photo1` text NOT NULL ,
`mini1` text NOT NULL ,
`photo2` text NOT NULL ,
`mini2` text NOT NULL ,
`photo3` text NOT NULL ,
`mini3` text NOT NULL ,
`photo4` text NOT NULL ,
`mini4` text NOT NULL ,
KEY `id` ( `id` )
)ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =28
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 ´DEFAULT CHARSET=latin1 AUTO_INCREMENT=28´ at line 21
que faire ?? merci d´avance 