简体   繁体   English

如何连接统一数据库

[英]How to connect unified database

My application still using Unified database and i am trying to automated that using selenium Java.我的应用程序仍在使用统一数据库,我正在尝试使用 selenium Java 自动化。 Could anyone please help me to identify driver or api i should use to connect to database.谁能帮我确定我应该用来连接数据库的驱动程序或 api。 I tried我试过了

Option 1选项1

Class.forName("com.imaginary.sql.msql.MsqlDriver"); con = DriverManager.getConnection(url, "borg", "");

Option 2选项 2

Class.forName("com.mysql.jdbc.Driver");
c =DriverManager.getConnection("jdbc:mysql://localhost:xxx/DATABASE", "USERNAME", "Password");

You need MySQL JDBC Driver, check this link it will help you https://www.mkyong.com/jdbc/how-to-connect-to-mysql-with-jdbc-driver-java/您需要 MySQL JDBC 驱动程序,检查此链接它将帮助您https://www.mkyong.com/jdbc/how-to-driver-java//to-

After 2 days of search i have found my answer.To connect unified database,compatible driver is SimbaJDBC.经过2天的搜索,我找到了答案。要连接统一数据库,兼容的驱动程序是SimbaJDBC。 Hope this will help others who are in same boat.希望这会帮助其他在同一条船上的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM