how to install jdbc driver for mysql java connector

You do not install it, you place JAR in project appropriate location. In most caes lib directory on same level as your src should be fine. You will need to however tell your IDE where to find it, and same goes for building from command line

you just simply tell your IDE to path of your mysql driver.and you have to add it into library.then load your driver.