halberd-lee

Mariadb 10.14 mysqldump error: 1049

Table of Contents

1 错误信息

执行表导出:

mysqldump -uroot -proot --tables test.a1 test.a2 > tables.sql
mysqldump: Got error: 1049: "Unknown database "test.a1" when selecting the database

2 解决方法

此时,我们需要使用 -B (–databases) 参数与–tables 配合使用

mysqldump -uroot -p -B test --tables a1 a2 > tables.sql

Author: halberd.lee

Created: 2020-06-14 Sun 17:57

Validate

分类:

Mysql

技术点:

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-09-08
猜你喜欢
  • 2021-07-25
  • 2022-02-14
  • 2021-12-07
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案