How to use SQLDeveloper to connect to embedded Derby database

前端 未结 4 1814
悲哀的现实
悲哀的现实 2021-01-06 06:45

I have a project using derby and JPA. I can connect to the database fine within my application. I would like to connect to the embedded database with SQL Developer so I can

4条回答
  •  囚心锁ツ
    2021-01-06 07:36

    I was able to get this to work on sql developer 4.0.2.15 using the network driver by adding the driver files to the classpath and then editing the connections.xml file in the directory AppData\Roaming\SQL Developer\system4.0.2.15.21\o.jdeveloper.db.connection.12.1.3.2.41.140418.1111

    I did this by copying an sql server connection but it seems to work happily thinking it is an sql server database.

    I added the following to the file :

         
          
          
             
                1527/DATABASENAME
             
             
                USERNAME
             
             
                TRUE
             
             
                SQLServer
             
             
                Microsoft SQL Server
             
             
                DATABASENAME
             
             
                HOSTNAME
             
             
                JDBCURL
             
             
                false
             
             
                org.apache.derby.jdbc.ClientDriver
             
          
       
    

    You will have to configure it with the appropriate values for DATABASENAME, USERNAME, HOSTNAME and JDBCURL for your database.

    I hope this helps

提交回复
热议问题