Java調用Mysql——格式及運行機制

命令格式: command = "cmd /c mysql -h127.0.0.1 -utiger -p111111 test < d:\tpl.sql -f --default-character-set=utf8 運行方式: Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(command); 信息處理: // 收集全部錯誤信息
相關文章
相關標籤/搜索