欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql-processbuilder 在linux符号识别问题

程序员文章站 2022-06-10 20:37:57
...
mysqljavalinux

ProcessBuilder exp = new ProcessBuilder(new String[] {"mysqldump","db_name","table_name",">","path/XXX.sql"});

processbuilder 对象在linux系统中不能识别“>” 会把它当成表名
mysqldump: Couldn't find table: ">"

怎样才能让linux识别">"

相关标签: mysql java linux