ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Qian" <daqiqi...@aol.com>
Subject mySQL database connection issue
Date Wed, 07 Jun 2006 18:56:22 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<font size="2"><font face="Arial,sans-serif">I have two db schema in
one MySQL server, dbabc and dbabc2. I have following db url in
sqlMapConfig.xml:<br>
<br>
&nbsp;&nbsp; &lt;dataSource type="SIMPLE"&gt;<br>
&nbsp;&nbsp; &lt;property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/&gt;<br>
&nbsp; &lt;property name="JDBC.ConnectionURL"
value="jdbc:mysql://hostName:3306/dbabc2"/&gt;<br>
<br>
somehow, iBATIS always connects to dbabc instead of dbabc2.<br>
<br>
btw, I'm using Abator generated code against dbabc (actually, dbabc and
dbabc2 are exactly same. The only difference is data in the tables). I
knew this sqlMapConfig.xml was used by iBATIS since I removed it and
iBATIS complained about </font></font><font size="2"  face="Arial,sans-serif"><font
face="Arial,sans-serif">sqlMapConfig.xml
not found.<br>
<br>
thanks for help.<br>
<br>
tony<br>
</font></font>
</body>
</html>


Mime
View raw message