Is it possible just to view the current stored backups on the server from the command line using the mysqldump command? If so, how would I go about doing this?

有帮助吗?

解决方案

When you run a mysqldump command, the output is usually redirected to a file, like so:

mysqldump -ppassword database > /path/to/file

If you run the command this way, then you can see the current stored files simply by listing the directory where you are storing them.

其他提示

The mysqldump command is mostly use to dump the MySQL database to a .sql file. Using the Terminal (aka shell) you would use commands such as 'ls' to locate a file and 'less' to view the .sql file if that's what you are after.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top