|
La Communauté Webmaster 
| Pages: [1] |
 |
|
|
|
Auteur |
Sujet: Je ne vois pas le problème (Lu 1786 fois) |
|
 |
Je ne vois pas le problème
« sur: le 03-03-2013 a 22:32:51 » |
|
navalex3000
Membre récent

Hors-Ligne
Messages: 5

|
Bonjour je suis un tuto pour apprendre à créer son forum mais dès la première requête MySql donné il y a un HIC. Voici la requête:
-- -- Table `forum_categorie` -- CREATE TABLE `forum_categorie` ( `cat_id` int(11) NOT NULL AUTO_INCREMENT, `cat_nom` varchar(30) collate latin1_general_ci NOT NULL, `cat_ordre` int(11) NOT NULL, PRIMARY KEY (`cat_id`), UNIQUE KEY `cat_ordre` (`cat_ordre`) ); -- -- Table `forum_forum` -- CREATE TABLE `forum_forum` ( `forum_id` int(11) NOT NULL AUTO_INCREMENT, `forum_cat_id` mediumint(8) NOT NULL, `forum_name` varchar(30) collate latin1_general_ci NOT NULL, `forum_desc` text collate latin1_general_ci NOT NULL, `forum_ordre` mediumint(8) NOT NULL, `forum_last_post_id` int(11) NOT NULL, `forum_topic` mediumint(8) NOT NULL, `forum_post` mediumint(8) NOT NULL, `auth_view` tinyint(4) NOT NULL, `auth_post` tinyint(4) NOT NULL, `auth_topic` tinyint(4) NOT NULL, `auth_annonce` tinyint(4) NOT NULL, `auth_modo` tinyint(4) NOT NULL, PRIMARY KEY (`forum_id`) ); -- -- Table `forum_membres` -- CREATE TABLE `forum_membres` ( `membre_id` int(11) NOT NULL AUTO_INCREMENT, `membre_pseudo` varchar(30) collate latin1_general_ci NOT NULL, `membre_mdp` varchar(32) collate latin1_general_ci NOT NULL, `membre_email` varchar(250) collate latin1_general_ci NOT NULL, `membre_msn` varchar(250) collate latin1_general_ci NOT NULL, `membre_siteweb` varchar(100) collate latin1_general_ci NOT NULL, `membre_avatar` varchar(100) collate latin1_general_ci NOT NULL, `membre_signature` varchar(200) collate latin1_general_ci NOT NULL, `membre_localisation` varchar(100) collate latin1_general_ci NOT NULL, `membre_inscrit` int(11) NOT NULL, `membre_derniere_visite` int(11) NOT NULL, `membre_rang` tinyint (4) DEFAULT 2, `membre_post` int(11) NOT NULL, PRIMARY KEY (`membre_id`) ); -- -- Table `forum_post` -- CREATE TABLE `forum_post` ( `post_id` int(11) NOT NULL AUTO_INCREMENT, `post_createur` int(11) NOT NULL, `post_texte` text collate latin1_general_ci NOT NULL, `post_time` int(11) NOT NULL, `topic_id` int(11) NOT NULL, `post_forum_id` int(11) NOT NULL, PRIMARY KEY (`post_id`) ); -- -- Table `forum_topic` -- CREATE TABLE `forum_topic` ( `topic_id` int(11) NOT NULL AUTO_INCREMENT, `forum_id` int(11) NOT NULL, `topic_titre` char(60) collate latin1_general_ci NOT NULL, `topic_createur` int(11) NOT NULL, `topic_vu` mediumint(8) NOT NULL, `topic_time` int(11) NOT NULL, `topic_genre` varchar(30) collate latin1_general_ci NOT NULL, `topic_last_post` int(11) NOT NULL, `topic_first_post` int(11) NOT NULL, `topic_post` mediumint(8) NOT NULL, PRIMARY KEY (`topic_id`), UNIQUE KEY `topic_last_post` (`topic_last_post`) ); |
|
Et voici la réponse de MySql:
Erreur Requête SQL:
-- -- Table `forum_categorie` -- CREATE TABLE `forum_categorie` (
`cat_id` INT( 11 ) NOT NULL AUTO_INCREMENT , `cat_nom` VARCHAR( 30 ) COLLATE latin1_general_ci NOT NULL , `cat_ordre` INT( 11 ) NOT NULL , PRIMARY KEY ( `cat_id` ), UNIQUE KEY `cat_ordre` ( `cat_ordre` ) );
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 ' CREATE TABLE `forum_categorie` ( `cat_id` int(11) NOT NULL AUTO_INCRE' at line 4 |
|
D'où viens le problème ? |
Mon site web: http://tinycraft.fr |
|
|
|
|
 |
Re:Je ne vois pas le problème
« Répondre #1 sur: le 04-03-2013 a 07:57:57 » |
|
|
|
|
 |
Re:Je ne vois pas le problème
« Répondre #2 sur: le 12-03-2013 a 18:04:44 » |
|
|
|
|
| Pages:
[1] |
|
|
|
| |
|
|