Database connection in Eclipse (MySQL)

How to add database connection in Eclipse. This example is presented on MySQL database.

If you want to access your database in Eclipse, you must have 3 things:

  1. Database
  2. Eclipse for Java EE developers (or installed plugin Web Tools Platform for other Eclipse version)
  3. JDBC driver

I have installed on localhost MySQL database. Database name is jerry and user that can connect to this database has username jerry as well. Now I'd like to connect to this database in Eclipse. For this switch to Database development perspective and follow my instructions.