Skip to content

8. Postgres Database Connection with JDBC and Netbeans

Dominik edited this page Jul 13, 2014 · 3 revisions

To set up the database connection with Neatbeans and JDBC you need to follow these steps:

  • Projects -> Libraries -> Add Library -> PostgreSQL JDBC Driver
  • Services -> Drivers -> PostgreSQL -> right click -> Connect with -> Enter DB credentials
  • Services -> name of the previously established connection -> right click -> connect
  • Make sure that the specified fiel "databse url" is exactly the same as in the Java Class "PostgreSQL"