Hi,
You have to use JDBC to connect to a database, Eclipse is a tool , you cannot connect using this tool , you have to write JDBC code in Eclipse to connect to a server. Click on the below link to learn JDBC.
JDBC Connection Example,JDBC Connection Example,Connecting to a MySQL Database in Java