Search code examples
javamysqlpostgresqlnetbeansjdbc

How to connect NetBeans to MySQL database?


I have just installed NetBeans 7.0 and I am a newbie in NetBeans' world. can any one tell me how to connect my application to MySQl / Postgres ? I work on Windows XP.


Solution

  • In the Services window you can right click on the Databases tab and select New Connection. New Connection

    Select MySQL(Connector/J Driver) from the drop down list. The driver file should be listed in the window. If not, you can download the file, then click add and select it from your hard drive. Driver Information

    Finally enter your database details such as servername, username and password and click finish. Database Details