Impoter fichier csv to mysql

jjozzeph Messages postés 26 Statut Membre -  
Natio78 Messages postés 742 Statut Membre -
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 742 Statut Membre 96
 
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 3793 Statut Membre 745
 
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 3793 Statut Membre 745
 
Désolé, je suis complètement à coté de la plaque ;)
0
jjozzeph Messages postés 26 Statut Membre
 
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 742 Statut Membre 96
 
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