总结下几个数据库桥接 JDBC的URL
人难免会忘记 。 有时候少打个: 也要纠结半天
mysql --> jdbc:mysql://localhost:3306/blog[?useUnicode=true&characterEncoding=UTF-8&user=blog&password=xxxxx] ?useUnicode=true&characterEncoding=UTF-8 可以避免一些应为mysql 安装时没有设置编码 带来的问题。 就这个有点想个网址 其他 oracle 的: sqlserver的 ; 还真给带来不少的疑惑
sql server --> jdbc:sqlserver://localhost:1433;databasename=jblog
sqlite --> jdbc:sqlite:/E:/1.db
oracle --> jdbc:oracle:thin:@localhost:1521:orcl
目前 接触过这4个数据库。
JDBC 是个好东西。
Reproduced please indicate the author and the source, and error a link to this page.
text link:
//xiaochun.zrlog.com/152.html