turbine下的数据库连接

类别:Java 点击:0 评论:0 推荐:
 

Oracle数据库:

database = oracle
databaseDriver = oracle.jdbc.driver.OracleDriver
databaseUrl = jdbc:oracle:thin:@localhost:1521:ora9i
databaseUser = dbnewapp           ##据据库用户名
databasePassword = dbnewapp    ##数据库密码
databaseHost = localhost

torque.database.name = newapp
torque.database.manualCreation = false
torque.database.driver = oracle.jdbc.driver.OracleDriver
torque.database.createUrl = jdbc:oracle:thin:@localhost:1521:ora9i
torque.database.buildUrl = jdbc:oracle:thin:@localhost:1521:ora9i
torque.database.user = dbnewapp
torque.database.password = dbnewapp

Mysql数据库:

database = mysql
databaseDriver = org.gjt.mm.mysql.Driver
databaseUrl = jdbc:mysql://localhost:3306/newapp
databaseUser = newapp
databasePassword = newapp
databaseHost = localhost

torque.database.name = newapp
torque.database.manualCreation = false
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.createUrl = jdbc:mysql://localhost:3306/newapp
torque.database.buildUrl = jdbc:mysql://localhost:3306/newapp 
torque.database.user = dbnewapp
torque.database.password = dbnewapp

database.name = newapp
   
经测试都可连接成功

本文地址:http://com.8s8s.com/it/it9888.htm