Reputation: 24645
How can I dump database schema to MySQL database with Java JDBC conncetor? I have my database schema in text file.
Upvotes: 0
Views: 119
Reputation: 114817
The schema file is usually a series of SQL command. You should be able to send all those commands - at least one by one - via JDBC to the database. If your text file has a non-sql format, you will have to 'convert it to SQL' first.
Upvotes: 1