Skip to content

Commit 49162f4

Browse files
authored
Update mysqldump.md (jaywcjlove#376)
1 parent 1b3204c commit 49162f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

command/mysqldump.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ mysqldump(选项)
3232
--password:连接MySQL服务器的密码;
3333
--port:MySQL服务器的端口号;
3434
--user:连接MySQL服务器的用户名。
35+
--skip-lock-tables: 不锁表导出
3536
```
3637

3738
### 实例
@@ -58,4 +59,12 @@ mysqldump -u linuxde -p -d --add-drop-table smgp_apps_linuxde > linuxde_db.sql
5859

5960
`-d`没有数据,`--add-drop-tabl`e每个create语句之前增加一个`drop table`
6061

62+
### 问题解决
63+
64+
**锁表失败**
65+
```
66+
mysqldump: Got error: 1044: "Access denied for user 'appuser'@'1%' to database 'tc_mall'" when doing LOCK TABLES
67+
```
68+
可使用`--skip-lock-tables`在导出数据阶段跳过锁表流程
69+
6170

0 commit comments

Comments
 (0)