Impoter fichier csv to mysql

Fermé
jjozzeph Messages postés 19 Date d'inscription jeudi 23 avril 2009 Statut Membre Dernière intervention 17 juin 2009 - 24 avril 2009 à 10:11
Natio78 Messages postés 719 Date d'inscription vendredi 9 novembre 2007 Statut Membre Dernière intervention 27 mai 2013 - 24 avril 2009 à 10:49
Bonjour,
j'ai une fichier GeoIPCountryWhois.csv contient toutes les Ip contry comme suit:
A1:

2.6.190.56,"2.6.190.63","33996344","33996351","GB","United Kingdom"

je ve l'importé en MySqL

merci d'avance!

JozZ
A voir également:

4 réponses

Natio78 Messages postés 719 Date d'inscription vendredi 9 novembre 2007 Statut Membre Dernière intervention 27 mai 2013 96
24 avril 2009 à 10:14
si tu utilises phpmyadmin tu dois pouvoir importer un fichier csv sinon tu peux aller voir ça:
http://www.commentcamarche.net/forum/affich 3111596 importation fichier csv dans mysql php
0
Lazarey Messages postés 3239 Date d'inscription vendredi 3 novembre 2006 Statut Membre Dernière intervention 21 mai 2012 745
24 avril 2009 à 10:15
Salut,
Insert into <nom_de_la_table> (<champs1>, <champs2>, <champs3>, <champs4>, <champs5>, <champs6>)
values (2.6.190.56,"2.6.190.63","33996344","33996351","GB","United Kingdom")


Bien sur, il ne faut pas mettre les < >
0
Lazarey Messages postés 3239 Date d'inscription vendredi 3 novembre 2006 Statut Membre Dernière intervention 21 mai 2012 745
24 avril 2009 à 10:16
Désolé, je suis complètement à coté de la plaque ;)
0
jjozzeph Messages postés 19 Date d'inscription jeudi 23 avril 2009 Statut Membre Dernière intervention 17 juin 2009
24 avril 2009 à 10:46
re bonjour,
voilà la probléme !

Mysql packet size is 1MB and it is lower than the size of the file GeoIPCountryWhois.csv which is 7.93MB.
Please download the other version of import.php at http://phpweby.com/software/ip2country

message affihage :(!

merci!
jozZ
0
Natio78 Messages postés 719 Date d'inscription vendredi 9 novembre 2007 Statut Membre Dernière intervention 27 mai 2013 96
24 avril 2009 à 10:49
ah oui c'est vrai sous phpmyadmin t'es limité à des fichiers de 1Mb et là ton fichier est plus de 7 fois trop gros.
Regarde la solution via php
0