OSSpk / Library-Management-System-JAVA

📚 A sophisticated Library Management System designed in Java while following the concepts of decoupled layers (entities) and minimal code in interface (GUI).
https://github.com/harismuneer
MIT License
353 stars 231 forks source link

Getting this error while connecting new connection wizard #14

Open Shreekesh27 opened 2 years ago

Shreekesh27 commented 2 years ago

Cannot establish a connection to jdbc:derby://localhost:1527/LMS using org.apache.derby.jdbc.ClientDriver (DERBY SQL error: ERRORCODE: 40000, SQLSTATE: XJ040, SQLERRMC: Failed to start database 'LMS' with class loader sun.misc.Launcher$AppClassLoader@1d44bcfa, see the next exception for details.::SQLSTATE: XSLAN)

What should i do??

jomariabejo commented 1 year ago

I discovered a solution for a connection issue I was having. I first rewrite the makeConnection() method, inside the class I locate host, uName, and uPass then rewrite it based on your port and database description. then it works perfectly.