IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Requêtes MySQL Discussion :

Mysqldump


Sujet :

Requêtes MySQL

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    80
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2005
    Messages : 80
    Points : 71
    Points
    71
    Par défaut Mysqldump
    Salut tout le monde,

    j aimerais utiliser mysqldump pour copier une base entre 2 serveurs mais j'ai une erreur.
    Alors voila ma commande :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    C:\mysql\bin>mysqldump -u root --opt girotel | mysql -u root -proot
    --host=192.X.X.X -C girotel
    et voila mon erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
     
    ERROR 1005 at line 12: Ne peut crÚer la table '.\girotel\budg001.frm' (Errcode:
    121)
    voila donc si qq un peut m aider merci beaucoup

  2. #2
    Membre expérimenté
    Avatar de Adjanakis
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    739
    Détails du profil
    Informations personnelles :
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations forums :
    Inscription : Avril 2004
    Messages : 739
    Points : 1 351
    Points
    1 351
    Par défaut
    Salut,

    pourrais tu nous montrer les premières requêtes qui sont executées par le serveur s'il te plaît. Jusqu'à un peu plus que la ligne 12. Mais apparemment il s'agirait d'une erreur sur une clé étrangère. Pour m'en assurer je suis aller voir dans la documentation française de MySQL :

    Citation Envoyé par Documentation MySQL
    Si MySQL vous retourne une numéro d'erreur 1005 lors de la comande CREATE TABLE, et un message d'erreur de numéro 150, alors la création de la table a échoué à cause de la contrainte de clé étrangère, qui n'a pas été correctement formulée. Similairement, si une commande ALTER TABLE échoue et indique une erreur 150, c'est que la définition de la clé étrangère est incorrectement formulée dans la table modifiée. Depuis la version 4.0.13, vous pouvez utiliser la commande SHOW INNODB STATUS pour avoir une explication détaillée de la dernière erreur de clé étrangère InnoDB sur le serveur. ]
    Pensez au tag

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    80
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2005
    Messages : 80
    Points : 71
    Points
    71
    Par défaut
    Comment pourrais t il y avoir une erreur sur une clé etrangere alors que mysql execute son propre truc et non un script.sql que moi j aurais créer ( et ou la il y aurait des fautes c sur ) ???

  4. #4
    Membre expérimenté
    Avatar de Adjanakis
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    739
    Détails du profil
    Informations personnelles :
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations forums :
    Inscription : Avril 2004
    Messages : 739
    Points : 1 351
    Points
    1 351
    Par défaut
    Citation Envoyé par Psykorel
    Comment pourrais t il y avoir une erreur sur une clé etrangere alors que mysql execute son propre truc et non un script.sql que moi j aurais créer ( et ou la il y aurait des fautes c sur ) ???
    Parce que le code erreur dit que c'est possible . Mais si tu ne veux pas que l'on regarde ces premières requêtes pour voir d'où pourrais venir le problème (configuration...) , libre à toi
    Pensez au tag

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    80
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2005
    Messages : 80
    Points : 71
    Points
    71
    Par défaut
    Ok je vous montre les premieres requetes du mysqldump :

    Vous l'aurez voulu
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
     
     
    C:\mysql\bin>mysqldump -u root --opt girotel
    -- MySQL dump 9.11
    --
    -- Host: localhost    Database: girotel
    -- ------------------------------------------------------
    -- Server version       4.0.23-pro-log
     
    --
    -- Table structure for table `budg001`
    --
     
    DROP TABLE IF EXISTS budg001;
    CREATE TABLE budg001 (
      budg_annee char(4) NOT NULL default '',
      budg_site char(6) NOT NULL default '',
      budg_Secteur char(2) NOT NULL default '',
      budg_Activite smallint(6) NOT NULL default '0',
      budg_no_ocaa char(5) NOT NULL default '',
      budg_fam smallint(6) NOT NULL default '0',
      budg_sfam smallint(6) NOT NULL default '0',
      budg_ca_01 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_01 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_01 decimal(14,0) NOT NULL default '0',
      budb_pm_01 decimal(14,2) NOT NULL default '0.00',
      budg_to_01 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_01 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_01 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_01 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_01 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_01 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_01 decimal(14,2) NOT NULL default '0.00',
      budg_ca_02 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_02 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_02 decimal(14,0) NOT NULL default '0',
      budb_pm_02 decimal(14,2) NOT NULL default '0.00',
      budg_to_02 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_02 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_02 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_02 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_02 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_02 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_02 decimal(14,2) NOT NULL default '0.00',
      budg_ca_03 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_03 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_03 decimal(14,0) NOT NULL default '0',
      budb_pm_03 decimal(14,2) NOT NULL default '0.00',
      budg_to_03 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_03 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_03 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_03 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_03 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_03 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_03 decimal(14,2) NOT NULL default '0.00',
      budg_ca_04 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_04 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_04 decimal(14,0) NOT NULL default '0',
      budb_pm_04 decimal(14,2) NOT NULL default '0.00',
      budg_to_04 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_04 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_04 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_04 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_04 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_04 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_04 decimal(14,2) NOT NULL default '0.00',
      budg_ca_05 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_05 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_05 decimal(14,0) NOT NULL default '0',
      budb_pm_05 decimal(14,2) NOT NULL default '0.00',
      budg_to_05 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_05 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_05 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_05 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_05 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_05 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_05 decimal(14,2) NOT NULL default '0.00',
      budg_ca_06 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_06 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_06 decimal(14,0) NOT NULL default '0',
      budb_pm_06 decimal(14,2) NOT NULL default '0.00',
      budg_to_06 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_06 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_06 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_06 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_06 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_06 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_06 decimal(14,2) NOT NULL default '0.00',
      budg_ca_07 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_07 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_07 decimal(14,0) NOT NULL default '0',
      budb_pm_07 decimal(14,2) NOT NULL default '0.00',
      budg_to_07 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_07 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_07 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_07 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_07 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_07 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_07 decimal(14,2) NOT NULL default '0.00',
      budg_ca_08 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_08 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_08 decimal(14,0) NOT NULL default '0',
      budb_pm_08 decimal(14,2) NOT NULL default '0.00',
      budg_to_08 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_08 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_08 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_08 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_08 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_08 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_08 decimal(14,2) NOT NULL default '0.00',
      budg_ca_09 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_09 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_09 decimal(14,0) NOT NULL default '0',
      budb_pm_09 decimal(14,2) NOT NULL default '0.00',
      budg_to_09 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_09 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_09 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_09 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_09 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_09 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_09 decimal(14,2) NOT NULL default '0.00',
      budg_ca_10 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_10 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_10 decimal(14,0) NOT NULL default '0',
      budb_pm_10 decimal(14,2) NOT NULL default '0.00',
      budg_to_10 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_10 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_10 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_10 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_10 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_10 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_10 decimal(14,2) NOT NULL default '0.00',
      budg_ca_11 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_11 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_11 decimal(14,0) NOT NULL default '0',
      budb_pm_11 decimal(14,2) NOT NULL default '0.00',
      budg_to_11 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_11 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_11 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_11 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_11 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_11 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_11 decimal(14,2) NOT NULL default '0.00',
      budg_ca_12 decimal(14,2) NOT NULL default '0.00',
      budg_nb_chb_12 decimal(14,0) NOT NULL default '0',
      budg_nb_pax_12 decimal(14,0) NOT NULL default '0',
      budb_pm_12 decimal(14,2) NOT NULL default '0.00',
      budg_to_12 decimal(4,2) NOT NULL default '0.00',
      budg_nb_pdj_12 decimal(14,0) NOT NULL default '0',
      budg_pm_pdj_12 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_pdj_12 decimal(14,2) NOT NULL default '0.00',
      budg_nb_cvt_12 decimal(14,0) NOT NULL default '0',
      budg_pm_cvt_12 decimal(14,2) NOT NULL default '0.00',
      budg_tx_capt_resto_12 decimal(14,2) NOT NULL default '0.00',
      PRIMARY KEY  (budg_annee,budg_site,budg_Secteur,budg_Activite,budg_no_ocaa,bud
    g_fam,budg_sfam)
    ) TYPE=InnoDB;
     
    --
    -- Dumping data for table `budg001`
    --
     
     
    /*!40000 ALTER TABLE budg001 DISABLE KEYS */;
    LOCK TABLES budg001 WRITE;
    UNLOCK TABLES;
    /*!40000 ALTER TABLE budg001 ENABLE KEYS */;
     
    --
    -- Table structure for table `cadx001`
    --
     
     
    DROP TABLE IF EXISTS cadx001;
    CREATE TABLE cadx001 (
      Cadx_site varchar(6) NOT NULL default '',
      Cadx_cle_ocli varchar(6) NOT NULL default '',
      Cadx_chrono smallint(6) NOT NULL default '0',
      Cadx_debsej date NOT NULL default '0000-00-00',
      Cadx_finsej date NOT NULL default '0000-00-00',
      Cadx_cle2_otar varchar(6) NOT NULL default '',
      Cadx_cle3_otar varchar(4) NOT NULL default '',
      Cadx_cle4_otar char(2) NOT NULL default '',
      Cadx_cle5_otar varchar(4) NOT NULL default '',
      Cadx_cle6_otar smallint(6) NOT NULL default '0',
      Cadx_otarlib varchar(30) NOT NULL default '',
      Cadx_montsej decimal(14,2) NOT NULL default '0.00',
      Cadx_prixchb decimal(14,2) NOT NULL default '0.00',
      Cadx_cle2_ocha varchar(4) NOT NULL default '',
      Cadx_libchb varchar(8) NOT NULL default '',
      Cadx_nomoccup varchar(30) NOT NULL default '',
      Cadx_cle_ocri char(2) NOT NULL default '',
      Cadx_observ1 varchar(40) NOT NULL default '',
      Cadx_observ2 varchar(40) NOT NULL default '',
      Cadx_trans1 char(1) NOT NULL default '',
      Cadx_trans2 char(1) NOT NULL default '',
      Cadx_libsite varchar(30) NOT NULL default '',
      Cadx_filler varchar(20) NOT NULL default '',
      PRIMARY KEY  (Cadx_site,Cadx_cle_ocli,Cadx_chrono),
      KEY Ind_cadxrech1 (Cadx_cle_ocli),
      KEY Ind_cadxrech2 (Cadx_chrono),
      KEY Ind_cadxrech3 (Cadx_cle_ocli,Cadx_chrono),
      KEY Ind_cadxrech4 (Cadx_site,Cadx_trans1,Cadx_trans2),
      KEY Ind_cadxrech5 (Cadx_trans1),
      KEY Ind_cadxrech6 (Cadx_trans2)
    ) TYPE=InnoDB;
     
    --
    -- Dumping data for table `cadx001`
    --
     
     
    /*!40000 ALTER TABLE cadx001 DISABLE KEYS */;
    LOCK TABLES cadx001 WRITE;
    INSERT INTO cadx001 VALUES ('337003','000003',1,'2005-01-17','2005-02-21','00000
    1','0101','02','HEB3',1,'HEBERGEMENT > 60 j','0.00','21.25','0212','0212','VARIO
    T','01','  CAUTION ENCAISSEE LE 17/01/05','','O','O','GIROTEL',''),('337003','00
    0004',1,'2005-01-01','2005-01-14','000001','0101','01','HEB3',1,'HEBERGEMENT > 6
    0 j','211.25','16.25','0105','0105','THOMMASSET','01','  CAUTION ENCAISSE LE 31
    OCT 2004','','O','O','GIROTEL',''),('337003','000006',1,'2005-01-01','2005-01-07
    ','000001','0101','03','HEB3',2,'HEBERGEMENT > 60 j','131.02','21.25','0026','00
    26','LE MEUR/DUVAL','01','caution encaissee 460','','O','O','GIROTEL',''),('3370
    [.......................]
     
    T < 16j','232.75','33.25','0002','0002','MERCIER','01','','','O','O','GIROTEL','
    '),('337003','000161',1,'2005-02-25','2005-03-03','000001','0101','02','HEB',2,'
    HEBERGEMENT < 16j','273.00','45.25','0131','0131','LABASSE','01','','','O','O','
    GIROTEL','');
    UNLOCK TABLES;
    /*!40000 ALTER TABLE cadx001 ENABLE KEYS */;
     
    --
    -- Table structure for table `crev001`
    --
     
    DROP TABLE IF EXISTS crev001;
    CREATE TABLE crev001 (
      crev_cle smallint(6) NOT NULL default '0',
      crev_heure varchar(4) NOT NULL default '',
      crev_action char(1) NOT NULL default '',
      crev_poste char(2) NOT NULL default '',
      crev_nbex char(1) NOT NULL default '',
      crev_commun varchar(8) NOT NULL default '',
      crev_chbre varchar(4) NOT NULL default '',
      crev_hdeb char(2) NOT NULL default '',
      crev_datedeb varchar(6) NOT NULL default '',
      crev_hfin char(2) NOT NULL default '',
      crev_datefin varchar(6) NOT NULL default '',
      crev_datedem varchar(6) NOT NULL default '',
      crev_emis char(1) NOT NULL default '',
      crev_enco char(1) NOT NULL default '',
      crev_libre varchar(20) NOT NULL default '',
      PRIMARY KEY  (crev_cle)
    ) TYPE=InnoDB;
     
    --
    -- Dumping data for table `crev001`
    --
     
     
    /*!40000 ALTER TABLE crev001 DISABLE KEYS */;
    LOCK TABLES crev001 WRITE;
    UNLOCK TABLES;
    /*!40000 ALTER TABLE crev001 ENABLE KEYS */;
     
    --
    -- Table structure for table `ifam001`
    --
     
    DROP TABLE IF EXISTS ifam001;
    CREATE TABLE ifam001 (
      ifam_cle_fam smallint(6) NOT NULL default '0',
      ifam_cle_sfam smallint(6) NOT NULL default '0',
      ifam_libelle varchar(30) NOT NULL default '',
      ifam_cpt_brut varchar(15) NOT NULL default '',
      ifam_cpt_rem varchar(15) NOT NULL default '',
      ifam_cpt_comm varchar(15) NOT NULL default '',
      ifam_cpt_argt varchar(15) NOT NULL default '',
      ifam_dossier char(3) NOT NULL default '',
      PRIMARY KEY  (ifam_cle_fam,ifam_cle_sfam)
    ) TYPE=InnoDB;
     
    --
    -- Dumping data for table `ifam001`
    --
    --
     
     
    /*!40000 ALTER TABLE ifam001 DISABLE KEYS */;
    LOCK TABLES ifam001 WRITE;
    INSERT INTO ifam001 VALUES (1,0,'','701000','','','',''),(1,1,'','701000','','',
    '',''),(1,2,'','701000','','','',''),(2,0,'','702000','','','',''),(2,1,'','7020
    00','','','',''),(2,2,'','702000','','','',''),(2,3,'CA PETIT DEJEUNERS','702000
    ','','','',''),(2,6,'','702000','','','',''),(3,0,'','708000','','','',''),(3,1,
    '','708000','','','',''),(3,2,'','708000','','','',''),(3,3,'','708000','','',''
    ,''),(4,0,'','703000','','','',''),(4,1,'CA TELEPHONE','703000','','','',''),(4,
    2,'CA TELECOPIE','703000','','','',''),(5,0,'','464000','','','',''),(5,1,'','46
    4000','','','',''),(6,0,'','705000','','','',''),(6,1,'CA MENAGE','705000','',''
    ,'',''),(6,2,'CA KIT LINGE','705000','','','',''),(7,0,'','704000','','','',''),
    (7,1,'CA LAVERIE','704000','','','',''),(8,0,'','706000','','','',''),(8,1,'CA E
    LECTRICITE','706000','','','',''),(9,0,'','707000','','','',''),(9,1,'CA TRAVAUX
    ','707000','','','','');
    UNLOCK TABLES;
    /*!40000 ALTER TABLE ifam001 ENABLE KEYS */;
     
    --
    -- Table structure for table `njou001`
    --
     
    DROP TABLE IF EXISTS njou001;
    CREATE TABLE njou001 (
      Njou_site varchar(6) NOT NULL default '',
      Njou_poste varchar(17) NOT NULL default '',
      Njou_brigade smallint(6) NOT NULL default '0',
      Njou_date varchar(10) NOT NULL default '',
      Njou_heure varchar(10) NOT NULL default '',
      Njou_chrono smallint(6) NOT NULL default '0',
      Njou_notechb varchar(4) NOT NULL default '',
      Njou_idnote varchar(10) NOT NULL default '',
      Njou_cle1_otar varchar(6) NOT NULL default '',
      Njou_cle2_otar varchar(6) NOT NULL default '',
      Njou_cle3_otar varchar(4) NOT NULL default '',
      Njou_cle4_otar char(2) NOT NULL default '',
      Njou_cle5_otar varchar(4) NOT NULL default '',
      Njou_cle6_otar smallint(6) NOT NULL default '0',
      Njou_typenote char(2) NOT NULL default '',
      Njou_codeprest varchar(5) NOT NULL default '',
      Njou_libelle varchar(40) NOT NULL default '',
      Njou_qte decimal(8,2) NOT NULL default '0.00',
      Njou_pu decimal(8,2) NOT NULL default '0.00',
      Njou_remis decimal(8,2) NOT NULL default '0.00',
      Njou_comm decimal(8,2) NOT NULL default '0.00',
      Njou_pnet decimal(14,2) NOT NULL default '0.00',
      Njou_info varchar(30) NOT NULL default '',
      Njou_acti smallint(6) NOT NULL default '0',
      Njou_libre varchar(10) NOT NULL default '',
      Njou_type varchar(10) NOT NULL default '',
      Njou_cle_notc varchar(17) NOT NULL default '',
      Njou_numresa varchar(17) NOT NULL default '',
      Njou_glob_det char(1) NOT NULL default '',
      Njou_notc_nfact decimal(6,0) NOT NULL default '0',
      Njou_derfact smallint(6) NOT NULL default '0',
      Njou_nom_obj varchar(50) NOT NULL default '',
      PRIMARY KEY  (Njou_site,Njou_poste,Njou_brigade,Njou_date,Njou_heure,Njou_chro
    no),
      KEY ind_date_njou (Njou_date),
      KEY ind_njourech1 (Njou_site,Njou_date)
    ) TYPE=InnoDB;
     
    --
    -- Dumping data for table `njou001`
    --
     
     
    /*!40000 ALTER TABLE njou001 DISABLE KEYS */;
    LOCK TABLES njou001 WRITE;
    INSERT INTO njou001 VALUES ('337003','ADMINISTRATEUR',1,'2004-11-01','0937219210
    ',1,'0016','','337003','000001','0301','ND','ND',0,'CL','666','SOLDE ANTERIEUR A
    etc.................
    Voila je vous avez prévenu....

    Mais si ca peut vous servir...
    En tout cas merci pour votre aide

  6. #6
    Membre expérimenté
    Avatar de Adjanakis
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    739
    Détails du profil
    Informations personnelles :
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations forums :
    Inscription : Avril 2004
    Messages : 739
    Points : 1 351
    Points
    1 351
    Par défaut
    Et ça a donné quoi quand tu as tester ces requêtes de création à la main pour voir où se trouvait exactement le problème?
    Tu as vraiment besoin d'une table InnoDB? parce que c'est curieux que le serveur voit une clé étrangère sur une requête qui en est dépourvue.
    Pensez au tag

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    80
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2005
    Messages : 80
    Points : 71
    Points
    71
    Par défaut
    Ouais les tables innodb sont obligatoires.
    Et a la création le .sql s execute sans pb c'est bien ca qui est bizarre...

  8. #8
    Membre régulier
    Profil pro
    Inscrit en
    Mai 2005
    Messages
    80
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2005
    Messages : 80
    Points : 71
    Points
    71
    Par défaut
    Ca y est j ai trouvé, pour ceux que ca interresse :

    En fait il me faisait cette erreur parce que la base que je voulais copier existait deja avant et je l avais supprimer par une suppression du dossier et non un drop des table donc pour mysql les tables existait toujours donc ca me faisait cette erreur.

    Merci a tous pour votre aide
    et a bientot

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Sauvegarde] SELECT * INTO OUTFILE ou bien Mysqldump ?
    Par mathieu dans le forum Administration
    Réponses: 17
    Dernier message: 25/04/2013, 16h58
  2. Peut-on avoir confiance en mysqldump ?
    Par ROUMEG dans le forum Administration
    Réponses: 7
    Dernier message: 01/07/2004, 11h10
  3. mysqldump local
    Par deer dans le forum Administration
    Réponses: 3
    Dernier message: 30/10/2003, 11h04
  4. mysqldump sur free
    Par bouba64 dans le forum Administration
    Réponses: 4
    Dernier message: 15/07/2003, 17h10
  5. pb avec mysqldump
    Par dody dans le forum Administration
    Réponses: 8
    Dernier message: 21/05/2003, 07h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo