You can check the in the image(link at the end of sentence) the library and code as well ---
The error is "java.lang.ClassNotFoundException: com.mysql.c