You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roland Carlsson <ro...@swetravel.se> on 2001/11/01 13:36:08 UTC

Re: MySQL jdbc connection url

It url should be formed like any other url so you should use & to separate name=value. Not ; as u have done

jdbc:mysql://localhot/db?user=name&password=pw

Regards 
Roland Carlsson


----- Original Message ----- 
From: "Andrius" <ob...@takas.lt>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, November 01, 2001 1:51 PM
Subject: MySQL jdbc connection url


> Hello,
>     What's the correct MySQL jdbc connection url? I'm trying to setup
> jdbcRealm on tomcat 4.0.1,
>     and using this url pattern :
> connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"
>    but it goes wrong - it says "Invalid authorization exception: Access
> denied for user: 'test;password@host'.
>     I've configured server side permissions properly (mySQL accepts using
> another client). thanx for any response.
> 
> obj.
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>