Impoter fichier csv to mysql
jjozzeph
Messages postés
26
Statut
Membre
-
Natio78 Messages postés 742 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
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
Configuration: Windows XP Firefox 2.0.0.20
4 réponses
-
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 -
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 < > -
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 -
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