Probleme sql

frederic72200 -  
arthezius Messages postés 3538 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

j'essaye d'injecter 5 tables sql dans phpmyadmin pour l'installation d'un script mais pour chaque tables la même erreur :

MySQL a répondu: Documentation
#1064 - Erreur de syntaxe près de 'TYPE=MyISAM PACK_KEYS=0 AUTO_INCREMENT=2' à la ligne 7

voici la table que j'essaye d'envoyer :

DROP TABLE IF EXISTS 'ban';
CREATE TABLE 'ban' (
'id' int(11) NOT NULL auto_increment,
'ip' varchar(15) NOT NULL default '',
'date' datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY ('id'),
UNIQUE KEY 'ip' ('ip')
) TYPE=MyISAM PACK_KEYS=0 AUTO_INCREMENT=2;


J'ai beau chercher, je comprend pas d'ou peut provenir l'erreur

A voir également:

1 réponse

arthezius Messages postés 3538 Date d'inscription   Statut Membre Dernière intervention   475
 
Quand j'exporte une de mes table à partir de PhpMyAdmin, la requête se termine de la manière suivante:
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8609 ; 


Essai de remplacer ta requête par:
DROP TABLE IF EXISTS 'ban';
CREATE TABLE 'ban' (
'id' int(11) NOT NULL auto_increment,
'ip' varchar(15) NOT NULL default '',
'date' datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY ('id'),
UNIQUE KEY 'ip' ('ip')
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2; 

0