MYSQL大数据导入

感谢XP提供代码!
在这里记录以后学要用;作用资料查询的用!
步:mysql -h localhost -uroot
第 2步:show databases;
第 3步:use changchunmap;
第 4步:show tables;
第 5步:load data local infile "d:/c.txt" replace o table changchunmap fields terminated by ' ';
没有了;
load data local infile "d:/migration/mysql/babel_topic.txt" replace o table babel_topic_test fields terminated by ' '
load data local infile "d:/migration/mysql/babel_user.txt" replace o table babel_user_test fields terminated by '\t'
在导入过程中某些字段数据为NULL修改了某些表格长度和可以为空,为了正确导入请保证如下字段修改完毕:
Babel_topic: tpc_uname VARCHAR(192) 可以为NULL
Babel_user: usr_password VARCHAR(64) 可以为NULL
usr_nick VARCHAR(192) 可以为NULL
load data local infile "d:/c.txt" replace o table changchunmap fields terminated by ' '


Tags: 

延伸阅读

最新评论

发表评论