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
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
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:
- Impoter fichier csv to mysql
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
- Comment ouvrir un fichier epub ? - Guide
- Ouvrir fichier .bin - Guide
- Fichier iso - Guide
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
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
http://www.commentcamarche.net/forum/affich 3111596 importation fichier csv dans mysql php
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
24 avril 2009 à 10:15
Salut,
Bien sur, il ne faut pas mettre les < >
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 < >
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
24 avril 2009 à 10:16
Désolé, je suis complètement à coté de la plaque ;)
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
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
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
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
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
Regarde la solution via php