Bonjour à vous.
Mon problème est que j'arrive pas à importer un fichier csv, même en suivant pas à pas les instructions d'un code donné dans un tuto.
je vous donne d'abord mon fichier exemple:
voilà son chemin: C:\Users\jonass\Downloads\CSV_Sample1.csv
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 "First Name","Last Name","Email","Age" "Bob","Smith","bob@mywebsite.com","34" "Jane","Wilson","jane@example.com","21" "Pete","Von Burg","pete@example.com","44"
en utilisant cette commande console :
ceci ne marche pas n'en plus:
Code : Sélectionner tout - Visualiser dans une fenêtre à part SOURCE C:\Users\jonass\Downloads\CSV_Sample1.csv;
Code : Sélectionner tout - Visualiser dans une fenêtre à part \. C:\Users\jonass\Downloads\CSV_Sample1.csv;Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 Microsoft Windows [version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Tous droits réservés. C:\Users\jonass>mysql -u root -p Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.5.24-log MySQL Community Server (GPL) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SOURCE C:\Users\jonass\Downloads\CSV_Sample1.csv; ERROR: Unknown command '\U'. ERROR: Unknown command '\j'. ERROR: Unknown command '\D'. mysql: Character set 'SV_Sample1.csv;' is not a compiled character set and is not specified in the 'C:\Program F iles\MySQL\MySQL Server 5.5\share\charsets\Index.xml' file Charset is not found ->
Partager