当前位置:网站首页>Mysql database table export and import with binary
Mysql database table export and import with binary
2022-07-03 06:03:00 【UU_ Yang】
【mysqldump】 export sql Script , Out of commission select Export some fields
export
>mysqldump -hlocalhost -P3307 -uroot -p123456 mydb mytable --where="id = 412123456" --hex-blob --add-drop-table=false --add-locks=false --no-create-info=true>"d:\export.sql"
Import
>mysql -hlocalhost -P3307 -uroot -p123456 mydb <export.sql
Or first mysql Sign in , Switch DB, perform source export.sql
【sql】 Derived data , have access to select sentence
select id, c1, c2, c3, c4, c5, c6, c7, c8 from mydb.mytable limit 100 into outfile
'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/out.csv' fields Terminated by',' lines terminated by'\r\n';
Import
load data infile 'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/out.csv' into table mydb.mytable
【mysql】 Derived data , have access to select
mysql -h192.168.1.12 -P3307 -uroot -p123456 test -e "select id,name,age from usertable" > d:\users.csv
边栏推荐
- Ansible firewall firewalld setting
- Maximum likelihood estimation, divergence, cross entropy
- Redis cannot connect remotely.
- How to create and configure ZABBIX
- 为什么网站打开速度慢?
- Troubleshooting of 32GB Jetson Orin SOM failure to brush
- [teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb
- Analysis of Clickhouse mergetree principle
- Personal outlook | looking forward to the future from Xiaobai's self analysis and future planning
- Btrfs and ext4 - features, strengths and weaknesses
猜你喜欢
![[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system
![[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)](/img/c8/2995c503e9dabae4e2cc704449e04f.jpg)
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)

Redhat7 system root user password cracking
![[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis](/img/c6/8847218fa43c87e3eb51c021961eb7.jpg)
[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis

Detailed explanation of contextclassloader

How to create and configure ZABBIX

Understand one-way hash function

MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)

Pytorch dataloader implements minibatch (incomplete)

Apache+php+mysql environment construction is super detailed!!!
随机推荐
Crontab command usage
Analysis of the example of network subnet division in secondary vocational school
项目总结--01(接口的增删改查;多线程的使用)
Es remote cluster configuration and cross cluster search
Installation du plug - in CAD et chargement automatique DLL, Arx
[teacher Zhao Yuqiang] redis's slow query log
Pytorch builds the simplest version of neural network
Method of finding prime number
It is said that the operation and maintenance of shell scripts are paid tens of thousands of yuan a month!!!
There is no one of the necessary magic skills PXE for old drivers to install!!!
Personal outlook | looking forward to the future from Xiaobai's self analysis and future planning
一起上水碩系列】Day 9
Configure DTD of XML file
Solve the problem of automatic disconnection of SecureCRT timeout connection
[teacher Zhao Yuqiang] index in mongodb (Part 2)
88. 合并两个有序数组
CKA certification notes - CKA certification experience post
Ensemble, série shuishu] jour 9
Jedis source code analysis (I): jedis introduction, jedis module source code analysis
Pytorch dataloader implements minibatch (incomplete)