hello, this is not a jserv question but rather a jdbc/mysql question. i might
be able to help you anyway.
i use sybase , and can do a statement.execute("use dbname"); to switch which
database i am using, or in teh connect string with sybase you can specify teh
dbname. Hopefully one of these methods will give you a hint as to how to do
what you want in mysql.
Mohamed Riaz wrote:
> hi,
> My Environment
> Linux SuSE 6.0
> MySql database
>
> I use a driver called twz1. It is of type 3.
> I follow the following syntax to invoke.
> Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver);
> DriverManager.getConnection("jdbc:z1MySQL:");
>
> Using this i am able to connect only to the tables present in the default
> 'mysql' database. If i have a database with a name say xxx how do i connect
> to this using jdbc.
>
> If it is available, please excuse me and let me know the url at the
> faq-matic.
>
> thanks
> Riaz
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]