So after many google searches, I still can't figure out how to set up a connectable derby server via Intellij. I do have the Ultimate version, click new project, add a derby remote:
Host: localhost Port: 1527 (or empty) Database: same as projectname
And the username and password are usually simple like 'test' on both. The driver files are installed via Intellij. But when everything is set up and I try to 'Test Connection', I get the following error message:
Connection to testDB failed java.sql.SQLException: The URL 'jdbc:derby://localhost/testDB' is not properly formed.
Where did I go wrong with this?
The DB URL pattern should be:
jdbc:derby://localhost/testDB
or
jdbc:derby://localhost:{port}/testDB
I had to add the derbyclient.jar
to my Library in the Project structure menu in Intellij
, and start up the startNetworkServer.bat
file inside the db-folder. That fixed the issues I had connecting to a local database. Sorry for the late answer to this issue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.