A: 

You use JDBC to connect to your MySQL DataBase with Netbeans:

For that you need four pieces of information:

JDBC Driver: com.mysql.jdbc.Driver JDBC URL: jdbc:mysql://IP_ADDRESS_OF_DB_SERVER:PORT/DBNAME User: your user Pass: your pass

Where:

IP_ADDRESS_OF_DB_SERVER should be just that: an IP address or a name resolving to your server's IP ADDRESS PORT: a number indicating the port MySQL is using (usually 3306) DBNAME: name of your database

Make sure you have downloaded MySQL Connector JDBC drivers.

Pablo Santa Cruz
A: 

see this link Connecting to a MySQL Database

Sujoy