intellij连接MySQL数据库
导入MySQL数据库jdbc的jar包导入
File -> Project Structure (ctrl + shift + alt + s ) -> Module -> Dependencies -> Add... -> Library... -> Attach Classes
输入 Name:Lib (自定义)->OK
参考网址:http://www.cnblogs.com/lonelyxmas/archive/2011/07/17/2108895.html