Hi! I have a very complex and large HSQLdb I can connect my it to file baized or embded database using:
db_url: C:\My Database\My-Database;crypt_key=6C3773BE334A8D343006DD588D33F780;crypt_type=AES;shutdown=true
user: ms_db_user
pass: MyPaSs
Do to some technical reson, I have export my Database to file e.g.
--<export script statement> ::= PERFORM EXPORT SCRIPT FOR DATABASE [ { STRUCTURE | DATA } ] [WITH COLUMN NAMES] TO <single-quoted file path>
PERFORM EXPORT SCRIPT FOR DATABASE TO 'C:\My Database\backup.sql'
I can simply run my databse by just renaming backup.sql to My-Database.script, until now all is okey, i can now connect using
db_url: C:\My Database\My-Database;shutdown=true
user: ms_db_user
pass: MyPaSs
But problem is that the exported script e.g. backup.sqlis in decrypted formate (or plain formate), But I want to encrypt it same as like before it was, how can I?
If I simply try to connect using orignal url then i will see
Not in GZIP format
So How can I enc my existing database (not new one)?
Also I can't simply import database using
--<import script statement> ::= PERFORM IMPORT SCRIPT DATA FROM <single-quoted file path> { CONTINUE | STOP | CHECK } ON ERROR
PERFORM IMPORT SCRIPT DATA FROM 'C:\My Database\backup.sql' CHECK ON ERROR
Try:
PERFORM IMPORT SCRIPT DATA FROM 'C:\My Database\backup.sql' CONTINUE ON ERROR@fredt Still it's not working by using your provided solution!
I have exported HSQLdb
v.2.7.3database using:And try to import using:
The error:
And stacktrace exception:
Any more help, what is going wrong!
The Guide states: "The file to be imported must be a file exported with the EXPORT SCRIPT statementslisted above with DATA qualifier."