I have a MySQL database existing on a remote server. I only have connection privilege. I don't have FTP access to the server, and I need to do a complete dump of the database. I have tried mysqldump, but the issue is that it is creating the output on the server and as I don't have FTP I can not get the output from the server.

如何进行干净备份并在本地计算机上获得转储文件(当然,备份应该在本地计算机上恢复)?

推荐答案

您可以将服务器名称指定为mysqldump的选项:

mysqldump --host servername dbname > dbname.sql

Database相关问答推荐

如何限制报表中返回的行数?

是否可以同时从 RocksDB 读取?

如何让 Google Drive Electron 表格像 MySQL 数据库一样工作吗?

MYSQL CASE 语句多条件

无法使用命令行运行 liquibase

WAMP 的 MySQL 数据库文件位于何处?

如何将正在使用的数据库复制到django中的其他数据库?

在 MongoDB 中模拟关系

设计用于存储多人游戏的各种要求和统计数据的表格

我应该为我创建的新创建的 PostgreSQL 模式使用什么正确的文件扩展名?

在 sql server 中存储持续时间(时间跨度)

Sitecore - 将项目从 Web 移动到 Master?

从数据库行在 Golang 中创建map

MongoDB 和 PostgreSQL 的思考

MySQL相对于其他数据库的缺点

日期格式的 Oracle SQL 查询

多个和单个索引

有任何使用协议缓冲区的经验吗?

Guice、JDBC 和管理数据库连接

如何使用 liquibase,一个具体的例子