I
iksrazal
Hi all,
/home/iksrazal> mysql -u user -ppassword mydb < mydb.sql
That creates a new db instance and populates the tables with default
data. I need to:
1) Create a new db with the file shown from inside a servlet container.
2) The file could be anywhere on the same machine as the servlet
container.
3) The db is on another machine.
4) The db is mysql 4.1 .
What I think does not work is mysqlimport - as it seemingly only works
with tables, not a full db. And RunTimeExec - as how would I do that
when the db is remote?
Any ideas?
iksrazal
From the command line on the local machine I do this:
/home/iksrazal> mysql -u user -ppassword mydb < mydb.sql
That creates a new db instance and populates the tables with default
data. I need to:
1) Create a new db with the file shown from inside a servlet container.
2) The file could be anywhere on the same machine as the servlet
container.
3) The db is on another machine.
4) The db is mysql 4.1 .
What I think does not work is mysqlimport - as it seemingly only works
with tables, not a full db. And RunTimeExec - as how would I do that
when the db is remote?
Any ideas?
iksrazal