Hi all,
I have got a problem with the jdbc connection while connecting to
Mysql.I have written an XML file.The following is the code for giving the
database connection
<DATABASE type="String">
<driver>com.mysql.jdbc.Driver<\driver>
<database>
<location>jdbc:mysql:\\localhost\test<\location>
<user>root<\user>
<password>root<\password>
<\database>
<\DATABASE>
The database is accesed using the java code.Now the problem is exception
is arised while taking the user.
Connection con=DriverManager.getConnection(db,user,password) where db,user
and password are captured in java code
The db is being taken as the jdbc:mysql:\\localhost\test
user is taken also the db value that is jdbc:mysql:\\localhost\test
and password is shown as root
Is there any problem with my XML code.Can anyone help me where the
actual problem is.When i give db,user and password as constant strings in
the code it works well and also these above values are displayed when i
tried to display in the java code.I think main problem lies in the XML code.
I Don`t know whether this is the right place to place my query or
not(coz it deals more about java):I am sorry if i misplaced it
Thanks and regards
venu