Allow anonymous access (connecting to database without password)
----------------------------------------------------------------

                 Key: MSQL-29
                 URL: http://jira.codehaus.org/browse/MSQL-29
             Project: Maven 2.x SQL Plugin
          Issue Type: New Feature
    Affects Versions: 1.3
         Environment: linux-2.6.27.5-117.fc10.x86_64, MySQL-5.0.67
            Reporter: Mark Struberg
         Attachments: sql-anonymous.patch

Some databases do not allow connecting the database with password="".
E.g. MySQL fails if it gets an empty password property in the connection 
initialisation sequence:

{noformat}
Access denied for user 'root'@'localhost' (using password: YES)
{noformat}

So we may provide an option "anonymous" which simply skips adding the password 
property when connecting.

(And please argue with me that one should _never_ use a database without a 
password! Really, *I* see this exactly as you do and explained the reasons 
until I got blue in my face, but finally I capitulated)

The attached patch adds the 'anonymous' option handling. 
It has been tested on 2 other setups (F9, Ubuntu) also.

txs and LieGrue,
strub


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to