ProcessBuilder pb = new ProcessBuilder("C:/Program Files/MySQL/MySQL Server 5.7/bin/mysqldump", "数据库名",
"--default-character-set=utf8mb4" , "-h数据库host" , "-P数据库端口" ,
"-u用户名" , "-p数据库密码","--result-file=E:/dbName.sql");
ProcessBuilder pb = new ProcessBuilder("C:/Program Files/MySQL/MySQL Server 5.7/bin/mysqldump", "数据库名",
"--default-character-set=utf8mb4" , "-h数据库host" , "-P数据库端口" ,
"-u用户名" , "-p数据库密码","--result-file=E:/dbName.sql");
本文标题:ProcessBuilder 如何使用mysqldump执行远程
本文链接:https://www.haomeiwen.com/subject/amvgzttx.html
网友评论