Fosdccf.blog.chinaunix.net
sdccf
全部博文(19283)
Linux酷软(214)
tmp(0)
PostgreSQL(93)
Solaris(383)
AIX(173)
SCOUNIX(575)
DB2(1005)
Shell(386)
C/C++(1187)
MySQL(1750)
Sybase(465)
Oracle(3695)
Informix(548)
HP-UX(0)
IBM AIX(2)
Sun Solaris(0)
BSD(1)
Linux(8597)
SCO UNIX(23)
2011年(1)
2009年(125)
2008年(19094)
2007年(63)
clifford
linky521
曾德标
fengzhan
leon_yu
mcuflowe
yt200902
guanyuji
GY123456
snow888
carlos94
丸喵喵
sean229
cxunix
可怜的猪
cqxc413
xzzgege
wb123456
分类: Mysql/postgreSQL
2008-03-23 23:21:07
一.连接MySQL数据库 com.mysql.jdbc.Driver jdbc:mysql://192.168.0.1/databasename? useUnicode=true&characterEncoding=utf-8& autoReconnect=true username password 10 20 10 org.hibernate.dialect.MySQLDialect false true true true net.sf.ehcache.hibernate.EhCacheProvider org.hibernate.connection.C3P0ConnectionProvider true 1, false 0, yes 'Y', no 'N' true true true org.hibernate.hql.ast.ASTQueryTranslatorFactory xxx/xx/xx.hbm.xml xxx/xx/xx.hbm.xml 二.连接Oracle数据库 oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@192.168.0.1:1521:orcl username password 10 20 10 org.hibernate.dialect.OracleDialect false true true true net.sf.ehcache.hibernate.EhCacheProvider org.hibernate.connection.C3P0ConnectionProvider true 1, false 0, yes 'Y', no 'N' true true true org.hibernate.hql.ast.ASTQueryTranslatorFactory xxx/xx/xx.hbm.xml xxx/xx/xx.hbm.xml
一.连接MySQL数据库
com.mysql.jdbc.Driver jdbc:mysql://192.168.0.1/databasename? useUnicode=true&characterEncoding=utf-8& autoReconnect=true username password 10 20 10 org.hibernate.dialect.MySQLDialect false true true true net.sf.ehcache.hibernate.EhCacheProvider org.hibernate.connection.C3P0ConnectionProvider true 1, false 0, yes 'Y', no 'N' true true true org.hibernate.hql.ast.ASTQueryTranslatorFactory xxx/xx/xx.hbm.xml xxx/xx/xx.hbm.xml
二.连接Oracle数据库
oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@192.168.0.1:1521:orcl username password 10 20 10 org.hibernate.dialect.OracleDialect false true true true net.sf.ehcache.hibernate.EhCacheProvider org.hibernate.connection.C3P0ConnectionProvider true 1, false 0, yes 'Y', no 'N' true true true org.hibernate.hql.ast.ASTQueryTranslatorFactory xxx/xx/xx.hbm.xml xxx/xx/xx.hbm.xml
上一篇:详细讲解MySQL数据库对文件操作的封装
下一篇:带你深入了解MySQL语句优化的基本原则
登录 注册