Home > Database > Mysql Tutorial > body text

我踩了mysqldump的一个地雷_MySQL

WBOY
Release: 2016-06-01 13:17:38
Original
984 people have browsed it

mysqldump

我们先看2种情况:P 1:
[ 21:56:33-root@ssdtest:~ ]#mysqldump -S /data/mysql/test_3306/mysql.sock --single-transaction --force  --databases tpcc > v1.sql
Copy after login
/

P 2:
[ 21:56:54-root@ssdtest:~ ]#mysqldump -S /data/mysql/test_3306/mysql.sock --single-transaction --force  tpcc > v2.sql
Copy after login
数据库无辜惨遭"恢复出厂设置" :-)
线上操作必须列出执行方案,并尽可能评估每个操作背后所潜在的风险。这是DBA的基本职业素养。

Good Luck!
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!