Results 1 to 2 of 2
- 12-10-2012, 12:25 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 1
- Rep Power
- 0
JDBC with several databases (mysql)
Hello! :)
I'm working with JDBC and MySQL and I have a question about it.
As I understand, when we are creating connection, we should point url which looks like:
But if after some action I want to change the database (which is done in mysql as "USE another_database;"),Java Code:jdbc:mysql://localhost/mysql
should I create new connection for it or I can change the existing connection(if yes then how?)?
Thank you, I will wait for a responseLast edited by XZen; 12-10-2012 at 12:27 PM.
- 12-15-2012, 09:18 PM #2
Similar Threads
-
JDBC Connect problem on Linux: com.mysql.jdbc.Driver
By sbutt in forum JDBCReplies: 5Last Post: 09-25-2012, 05:36 PM -
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
By santde in forum JDBCReplies: 0Last Post: 03-03-2012, 01:01 AM -
JDBC Problem - com.mysql.jdbc.Driver
By icu222much in forum Advanced JavaReplies: 5Last Post: 11-22-2011, 04:54 PM -
MySQL/JDBC Mysql query output
By thelinuxguy in forum Advanced JavaReplies: 4Last Post: 02-13-2009, 01:57 AM -
help ... JDBC or PHP/MySQL
By bluebarca in forum Advanced JavaReplies: 1Last Post: 11-16-2007, 10:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks