Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用命令从命令行查看服务器上当前存储的备份mysqldump?如果是这样,我将如何去做?
mysqldump
当您运行 mysqldump 命令时,输出通常会重定向到一个文件,如下所示:
mysqldump -ppassword database > /path/to/file
如果以这种方式运行命令,那么只需列出存储文件的目录即可查看当前存储的文件。
mysqldump 命令主要用于将 MySQL 数据库转储到 .sql 文件。使用终端(又名 shell),您将使用诸如“ls”之类的命令来定位文件,并使用“less”来查看 .sql 文件(如果这是您所追求的)。