SELECT disambi, infobox from lemmas where infobox!=''into outfile 'C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/410_disambi_infobox.csv' fields terminated by',' optionally enclosed by'"' lines terminated by'\r\n';
而后我们将导出的csv文件转移到\import文件夹内:
文件移动Dos命令:
1 2 3 4 5 6 7 8 9
C:\Users\mmm>move C:\"ProgramData\MySQL\MySQL Server 8.0\Uploads\*.csv" C:\my\neo4j\import\ C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_disambi.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_disambi_infobox.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_disambi_redirect.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_disambi_subject.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_redirect.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_title.csv C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\410_title_disambi.csv 移动了 7 个文件。
C:\my\neo4j\import>..\bin\neo4j-import--multiline-fields=true --bad-tolerance=1000000 --into ..\data\databases\graph.db --id-type string --nodes:Title title_header.csv,410_title_new.csv --nodes:Disambi disambi_headers.csv,410_disambi_new.csv --nodes:Redirect redirect_header.csv,410_redirect.csv --nodes:Subject subject_header.csv,all_subject.csv --relationships:DisambiName title_disambi_header.csv,410_title_disambi_out.csv --relationships:RedirectName disambi_redirect_header.csv,410_disambi_redirect_out.csv --relationships:DisambiSubject disambi_subject_header.csv,disambi_subject.csv --relationships:Role disambi_infobox_header.csv,410_disambi_infobox_out.csv; WARNING: neo4j-import is deprecated and support for it will be removed in a future version of Neo4j; please use neo4j-admin import instead. Neo4j version: 3.5.11 Importing the contents of these files into C:\my\neo4j\data\databases\graph.db: Nodes: :Title C:\my\neo4j\import\title_header.csv C:\my\neo4j\import\410_title_new.csv
Available resources: Total machine memory: 15.85 GB Free machine memory: 9.93 GB Max heap memory : 3.52 GB Processors: 8 Configured max memory: 11.09 GB High-IO: false
Import starting 2019-10-2917:05:36.714+0800
······
Imported: 10,416,647 nodes 37,317,167 relationships 45,049,533 properties Peak memory usage: 1.03 GB There were bad entries which were skipped and logged into C:\my\neo4j\import\..\data\databases\graph.db\bad.log