If you're not aware of how to check the MySQL connectivity from NetBeans, do to create a servlet project on Netbeans is choose Java Web from the categories..