MYSQL大數(shù)據(jù)導(dǎo)入
感謝XP提供的代碼!
在這里記錄一下,因為以后學(xué)要用;作用資料查詢之用!
第一步: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'
在導(dǎo)入過程中因為某些字段數(shù)據(jù)為NULL修改了某些表格的長度和可以為空,為了正確導(dǎo)入,請保證如下字段修改完畢:
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 ' '
- 將sqlite3中數(shù)據(jù)導(dǎo)入到mysql中的實戰(zhàn)教程
- php基于Fleaphp框架實現(xiàn)cvs數(shù)據(jù)導(dǎo)入MySQL的方法
- MySQL中數(shù)據(jù)導(dǎo)入恢復(fù)的簡單教程
- PHP把MSSQL數(shù)據(jù)導(dǎo)入到MYSQL的方法
- MySQL中使用load data命令實現(xiàn)數(shù)據(jù)導(dǎo)入的方法
- 解析csv數(shù)據(jù)導(dǎo)入mysql的方法
- phpMyAdmin下將Excel中的數(shù)據(jù)導(dǎo)入MySql的圖文方法
- 3步搞定純真IP數(shù)據(jù)導(dǎo)入到MySQL的方法詳解
- Excel數(shù)據(jù)導(dǎo)入Mysql數(shù)據(jù)庫的實現(xiàn)代碼
- 如何把ACCESS的數(shù)據(jù)導(dǎo)入到Mysql中
- 分析Mysql大量數(shù)據(jù)導(dǎo)入遇到的問題以及解決方案
相關(guān)文章
MySQL提示:The server quit without updating PID file問題的解決辦法
今天網(wǎng)站web頁面提交內(nèi)容到數(shù)據(jù)庫,發(fā)現(xiàn)出錯了,一直提交不了,數(shù)找了下原因,發(fā)現(xiàn)數(shù)據(jù)寫不進(jìn)去!第一反應(yīng),重啟mysql數(shù)據(jù)庫,一直執(zhí)行中,停止不了也啟動不了,直覺告訴我磁盤滿了 !2014-04-04MySQL5.6 GTID模式下同步復(fù)制報錯不能跳過的解決方法
搭建虛擬機(jī)centos6.0, mysql5.6.10主從復(fù)制,死活不同步,搞了一整天找到這篇文章終于OK了,特分享一下,需要的朋友可以參考下2020-04-04