当前位置:网站首页>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
边栏推荐
- Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
- Core principles and source code analysis of disruptor
- Leetcode solution - 01 Two Sum
- Today, many CTOs were killed because they didn't achieve business
- Apache+php+mysql environment construction is super detailed!!!
- [teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history
- SVN分支管理
- Redis encountered noauth authentication required
- 88. Merge two ordered arrays
- tabbar的设置
猜你喜欢
![[teacher Zhao Yuqiang] index in mongodb (Part 2)](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 2)

Why is the website slow to open?

Oauth2.0 - using JWT to replace token and JWT content enhancement

Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency

Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception

智牛股--03

Apache+php+mysql environment construction is super detailed!!!
![Ensemble, série shuishu] jour 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Ensemble, série shuishu] jour 9

Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
![[teacher Zhao Yuqiang] RDB persistence of redis](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] RDB persistence of redis
随机推荐
JDBC connection database steps
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
Ansible firewall firewalld setting
Kubernetes notes (IX) kubernetes application encapsulation and expansion
[together Shangshui Shuo series] day 7 content +day8
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Installation du plug - in CAD et chargement automatique DLL, Arx
Jackson: what if there is a lack of property- Jackson: What happens if a property is missing?
70 shell script interview questions and answers
BeanDefinitionRegistryPostProcessor
CKA certification notes - CKA certification experience post
Today, many CTOs were killed because they didn't achieve business
Life is a process of continuous learning
Kubernetes notes (VII) kuberetes scheduling
Loss function in pytorch multi classification
Deep learning, thinking from one dimensional input to multi-dimensional feature input
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
1. Somme des deux nombres
[teacher Zhao Yuqiang] index in mongodb (Part 2)
CAD插件的安裝和自動加載dll、arx