Home >php教程 >php手册 >cmd导出所有mysql数据库,一个数据库一个脚本

cmd导出所有mysql数据库,一个数据库一个脚本

WBOY
WBOYOriginal
2016-06-07 11:42:311036browse

cmd导出所有mysql数据库,一个数据库一个脚本
E:\phpStudy\MySQL\data 为 mysql data目录
E:\phpStudy\MySQL\bin\mysqldump.exe 为 mysqldump.exe路径
E:\mysql_bak\ 为保存备份的路径for /f "delims=" %%i in ('dir /b /ad "E:\phpStudy\MySQL\data"') do (<br>     E:\phpStudy\MySQL\bin\mysqldump.exe   -uroot -proot  %%i > E:\mysql_bak\%%i.sql<br> )

附件 backup.rar ( 207 B 下载:53 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn