IMPORT/EXPORT base de donnée mysql

IMPORT/EXPORT base de donnée mysql - Windows & Software

Marsh Posté le 27-01-2002 à 21:22:42    

Le problème est :
J'ai une base de donnée mysql sur multimania, je l'exporte structure + données. ça me donne un fichier .sql
Je reviens sur mon serveur local apache+php+mysql+phpmyadmin
mais comment importer cette base de donnée avec phpmyadmin????
Merci de m'aider c'est urgent...

Reply

Marsh Posté le 27-01-2002 à 21:22:42   

Reply

Marsh Posté le 27-01-2002 à 21:30:26    

Après avoir sélectionné ta base il y a un un champ qui te dit "Exécuter une ou des requêtes sur la base ***". Soit tu tapes les requetes soit tu fais "Parcourir" pour chopper ton .sql


---------------
“I'll thank you very much.”
Reply

Marsh Posté le 28-01-2002 à 17:38:32    

ça ne marche pas. Il me dit erreur de syntaxe, quelqu'un peut me donner la commande

Reply

Marsh Posté le 28-01-2002 à 19:47:14    

up

Reply

Marsh Posté le 28-01-2002 à 20:11:08    

Ep Ep ta manip elle marche pas...

Reply

Marsh Posté le 28-01-2002 à 20:16:53    

l'erreur de syntaxe provient d'un bug chez multi qui rajoute ou enlève des ', si je me rappelle bien. Tu dois retravailler ton fichier pour le rendre correct.

Reply

Marsh Posté le 28-01-2002 à 20:18:58    

Merci Gizmo mais vu que j'y connais rien je te donne le début de mon fichier:
Kes ke je vire, ke je vire pas:
 
DROP TABLE IF EXISTS access;
CREATE TABLE access (
   userid int(10) unsigned NOT NULL,
   forumid smallint(5) unsigned NOT NULL,
   accessmask smallint(5) unsigned NOT NULL,
   KEY userid (userid,forumid)
);
 
INSERT INTO access VALUES('6','14','1';);
INSERT INTO access VALUES('6','41','1';);
 
 
 
DROP TABLE IF EXISTS adminlog;
CREATE TABLE adminlog (
   adminlogid int(10) unsigned NOT NULL auto_increment,
   userid int(10) unsigned NOT NULL,
   dateline int(10) unsigned NOT NULL,
   script varchar(20) NOT NULL,
   action varchar(20) NOT NULL,
   extrainfo varchar(200) NOT NULL,
   ipaddress varchar(15) NOT NULL,
   PRIMARY KEY (adminlogid)
);
 
INSERT INTO adminlog VALUES('1','1','1010
857701','index.php','
9;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('2','1','1010
857766','options.php','&#
039;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('3','1','1010
857948','options.php','&#
039;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('4','1','1010
858137','options.php','doo
ptions','','80.11.88.83&#
039;);
INSERT INTO adminlog VALUES('5','1','1010
858154','options.php','&#
039;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('6','1','1010
858216','backup.php','choo
se','','80.11.88.83'
);
INSERT INTO adminlog VALUES('7','1','1010
858222','backup.php','sqlt
able','Table = Array','80.11.88.83';);
INSERT INTO adminlog VALUES('8','1','1010
858252','style.php','downl
oad','','80.11.88.83'
;);
INSERT INTO adminlog VALUES('9','1','1010
858265','announcement.php',
9;add','','80.11.88.83�
39;);
INSERT INTO adminlog VALUES('10','1','101
0858293','forum.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('11','1','101
0858307','usertitle.php','
add','','80.11.88.83'
;);
INSERT INTO adminlog VALUES('12','1','101
0858311','user.php','add&
#039;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('13','1','101
0858366','user.php','inser
t','','80.11.88.83';)
;
INSERT INTO adminlog VALUES('14','1','101
0858397','user.php','find
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('15','1','101
0858402','user.php','edit
','user id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('16','1','101
0858416','user.php','doupd
ate','user id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('17','1','101
0858418','user.php','find
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('18','1','101
0858438','forum.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('19','1','101
0858556','forum.php','inse
rt','','80.11.88.83'
);
INSERT INTO adminlog VALUES('20','1','101
0858577','options.php','&
#039;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('21','1','101
0858555','announcement.php',�
39;add','','80.11.88.83&#
039;);
INSERT INTO adminlog VALUES('22','1','101
0858733','announcement.php',�
39;insert','','80.11.88.83
';);
INSERT INTO adminlog VALUES('23','1','101
0858778','forum.php','modi
fy','','80.11.88.83'
);
INSERT INTO adminlog VALUES('24','1','101
0858757','forum.php','remo
ve','forum id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('25','1','101
0858783','forum.php','kill
','forum id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('26','1','101
0858794','forum.php','door
der','','80.11.88.83'
;);
INSERT INTO adminlog VALUES('27','1','101
0858847','thread.php','vot
es','','80.11.88.83'
);
INSERT INTO adminlog VALUES('28','1','101
0858859','announcement.php',�
39;add','','80.11.88.83&#
039;);
INSERT INTO adminlog VALUES('29','1','101
0858863','forum.php','modi
fy','','80.11.88.83'
);
INSERT INTO adminlog VALUES('30','1','101
0858840','announcement.php',�
39;modify','','80.11.88.83
';);
INSERT INTO adminlog VALUES('31','1','101
0858868','announcement.php',�
39;edit','announcement id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('32','1','101
0859028','announcement.php',�
39;doupdate','announcement id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('33','1','101
0859043','misc.php','choos
er','','80.11.88.83'
);
INSERT INTO adminlog VALUES('34','1','101
0859054','style.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('35','1','101
0859459','index.php','�
39;,'','80.11.88.83';);
INSERT INTO adminlog VALUES('36','1','101
0859510','stats.php','inde
x','','80.11.88.83';)
;
INSERT INTO adminlog VALUES('37','1','101
0859489','adminlog.php','c
hoose','','80.11.88.83�
39;);
INSERT INTO adminlog VALUES('38','1','101
0859538','forum.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('39','1','101
0859602','forum.php','inse
rt','','80.11.88.83'
);
INSERT INTO adminlog VALUES('40','1','101
0859587','forum.php','edit
','forum id = 4','80.11.88.83';);
INSERT INTO adminlog VALUES('41','1','101
0859615','forum.php','door
der','','80.11.88.83'
;);
INSERT INTO adminlog VALUES('42','1','101
0859788','forum.php','edit
','forum id = 4','80.11.88.83';);
INSERT INTO adminlog VALUES('43','1','101
0859799','announcement.php',�
39;add','','80.11.88.83&#
039;);
INSERT INTO adminlog VALUES('44','1','101
0859847','announcement.php',�
39;insert','','80.11.88.83
';);
INSERT INTO adminlog VALUES('45','1','101
0859851','announcement.php',�
39;edit','announcement id = 1','80.11.88.83';);
INSERT INTO adminlog VALUES('46','1','101
0859955','style.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('47','1','101
0859994','style.php','add
','','80.11.88.83';);

 

INSERT INTO adminlog VALUES('48','1','101
0859998','style.php','down
load','','80.11.88.83
9;);
INSERT INTO

Reply

Marsh Posté le 28-01-2002 à 20:20:01    

Oups ça met des smiley

Reply

Marsh Posté le 28-01-2002 à 21:48:45    

il manque des ', regarde la première insertion:
 
INSERT INTO adminlog VALUES('1','1','1010
 
857701','index.php','

 

9;,'','80.11.88.83';);  
 
ca doit être des truc comme ca qui foutent la merde.

Reply

Marsh Posté le 29-01-2002 à 16:34:25    

Ou manquent-ils exactement?
Tu connaitrais pas un logiciel qui permettrais de zapper entre les différents types de fichiers de base de donnée sql?
Merci pour ces réponses

Reply

Marsh Posté le 29-01-2002 à 16:34:25   

Reply

Marsh Posté le 01-02-2002 à 22:10:15    

Je ne comprend pas tes dires gizmo... Peux-tu éclairer tse pensées

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed