I'm assuming you have correctly installed hsql via "sudo yum install"
As hsql is installed without a password by default, the first thing you need to do is set the password for the db.
- Navigate to the hsql installed directory "cd /var/lib/hsqldb"
- Start the db using "sudo java -cp lib/hsqldb.jar org.hsqldb.Server - database.0 file:data/db0 -dbname.0 firstdb &" This will start the database with an alias of "firstdb" and create the files under the "data" directory.
- The next step use the command line sql tool to access the db.
- Copy the "sqltool.rc" file from the hsqldb directory to the user's home directory "cp /var/lib/hsqldb/sqltool.rc ~/sqltool.rc"
- Execute the following command to start the tool : "java -jar /var/lib/hsqldb/lib/hsqldb.jar db0-url" This will provide an "sql>" prompt.
- Now set the password "sql> set PASSWORD password;" (syntax may not be 100% correct)
- Now shutdown the database "sql> shutdown;"
- Quit the sqltool "sql> \q"
- At this stage the hsqldb should have been shutdown correctly with the new password configured. Restart the hsql database as before in step 1 and 2.
- To check that the password has been changed, try accessing the database with the sqltool again from step 5. It should fail to connect.
- From the home directory, edit sqltool.rc to change the password used to access the database. "vi sqltool.rc"
- Find the urlid db0-url that represents your db. It has 4 properties: urlid, url, username and password. The value for password is probably empty so change that to "password". Save and exit vi.
- Now try accessing the database again from step 5. It should connect successfully.
Enjoyed your approach to explaining how it works, hope to see more blog posts from you. thank you!
ReplyDeleteHibernate Online Training | Java Online Training | Java EE Online Training
Hibernate Training in Chennai Java Training in Chennai | Java Training Institutes
I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
ReplyDeleteJava training in Chennai
Java training in Bangalore
ReplyDeleteThis is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb.
This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here
Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training
I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.
ReplyDeleteBecome an Expert In Software Testing Training! The most trusted and trending Programming Language. Learn from experienced Trainers and get the knowledge to crack a coding interview, @Softgen Infotech Located in BTM Layout.
wow really nice. It will be helpful for the people those who are ready to crack the interview and please also for remind what they have learned throughout concept.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Online Training
170 neyin numarası
ReplyDelete170 nerenin numarası
cumartesi kuyumcular kaça kadar açık
tik tok takipçi arttirma hilesi ücretsiz telefon numarasız
balıkesir token
sivas token
sanal numara
Tül perde modelleri
ReplyDeleteMobil onay
mobil ödeme bozdurma
nft nasıl alınır
ankara evden eve nakliyat
Trafik Sigortasi
DEDEKTÖR
HTTPS://KURMA.WEBSİTE/
Aşk kitapları
smm panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
https://www.beyazesyateknikservisi.com.tr/
servis
tiktok jeton hilesi