In Eclipse goto project Properies.
In Project properties click Java Build Path
There comes a tabbed dialogue boxes.
Select "Libraries" tab and click "Add External Jars".
Now select the jar file for MYSQL JDBC driver.
If this jar file is already present in project's library directory
then add it to project using "Add Jars".