Handle Exceptions of database importing from dump
I'm restoring my MySQL database from java code.
I use Process for running a batch file and i need to roleback if there were any exceptions.
How can I track the exceptions?
Is there any way doing it with jdbc "Statements"?
[247 byte] By [
yaronra] at [2007-11-27 11:47:00]

# 4
I realy prefer using Java Statements if there is any way doing that, and control the exceptuions with JDBC instead of Procces
At the moment the command I run is:
mysql -h localhost -u Username -pPassword db_name < dump_file_name.sql