连接配置文件:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:8866/first?useUnicode=true&characterEncoding=utf-8
username=账户名(默认root)
pwd=密码,(自己的设定)
jdbc连接配置文件 图1:
剩下的使用方式,与oracle,基本相同,只不过在sql语句上,略微不同,
分页查询与名称查询的语句 图2:
jdbc连接配置文件 图1:
分页查询与名称查询的语句 图2:
本文标题:jdbc连接MySQL(配置文件)
本文链接:https://www.haomeiwen.com/subject/cdqxhxtx.html
网友评论