【MySQL】数据库备份 mysqldump -u root -p db_name > db_backup.sql db_name:需要备份的数据库名; db_backup.sql:生成的sql文件名; ">" 右边可以写自己需要的路径。