Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


I am running LibreOffice on Fedora 21.  I'm trying to run a
LibreOffice basic macro from a form using the mysql direct connect. I am
able to open tables in the database without any problem.

When I open the form, the database password is requested and I enter it, and
the form's grid is loaded with the data.  I'm having trouble connecting from
the form using a basic macro. The connection requires a password. Running
the following code produces an error at the getConnection statement:

        sURL = "sdbc:mysql:mysqlc:sys76.localdomain:3306/folding"
        oManager = CreateUnoService("")

trye someting like (not sure about your username)

   Dim oParms(1) as new
    oParms(0).Name = "user"
    oParms(0).Value = "craig@mac.localdomain "
    oParms(1).Name = "password"
    oParms(1).Value = "yourpassword"
    oManager = CreateUnoService("")

    oCon = oManager.getConnectionWithInfo(sURL, oParms())

    getConnectionWithParameters() = oCon

hope it helps


        oCon = oManager.getConnection(sURL)

The resulting error is:

BASIC runtime error.
An exception occurred
Message: Access denied for user 'craig'@'mac.localdomain' (using password:

What do I need to change to successfully connect with the macro?


View this message in context:
Sent from the Users mailing list archive at

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.