MYSQL大数据导入
感谢XP提供的代码!
在这里记录一下,因为以后学要用;作用资料查询之用!
第一步:mysql -h localhost -uroot
第二步:show databases;
第三步:use changchunmap;
第四步:show tables;
第五步:load data local infile "d:/c.txt" replace into table changchunmap fields terminated by ' ';
没有了;
load data local infile "d:/migration/mysql/babel_topic.txt" replace into table babel_topic_test fields terminated by ' '
load data local infile "d:/migration/mysql/babel_user.txt" replace into 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 into table changchunmap fields terminated by ' '
相关文章
MySQL提示:The server quit without updating PID file问题的解决办法
今天网站web页面提交内容到数据库,发现出错了,一直提交不了,数找了下原因,发现数据写不进去!第一反应,重启mysql数据库,一直执行中,停止不了也启动不了,直觉告诉我磁盘满了 !2014-04-04MySQL5.6 GTID模式下同步复制报错不能跳过的解决方法
搭建虚拟机centos6.0, mysql5.6.10主从复制,死活不同步,搞了一整天找到这篇文章终于OK了,特分享一下,需要的朋友可以参考下2020-04-04
最新评论