Base / Mysql / Automatic connection and authentication

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
dme69
Posts: 4
Joined: Fri Oct 10, 2008 10:02 pm

Base / Mysql / Automatic connection and authentication

Post by dme69 »

Hello all,

I have a base document whixh connect to a mysql database. It's working great but each time i open this doc and try to see the database OOo is asking me for the user and password of mysql.
I want to be able to connect to the mysql database without this dialog box. Is it possible to have a macro doing this ? And is it possible to have this macro launching each time i open the document ?

I'm really new to OObasic and I need help :-)
Thanks for your help.

Dominique.
OOo 3.0.X on Mac OSx other
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Base / Mysql / Automatic connection and authentication

Post by Villeroy »

Anything wrong with the method suggested by probe1 in http://www.oooforum.org/forum/viewtopic.phtml?t=75865 :?:
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dme69
Posts: 4
Joined: Fri Oct 10, 2008 10:02 pm

Re: Base / Mysql / Automatic connection and authentication

Post by dme69 »

Yes it's not working for me it's still asking for user/password ?
OOo 3.0.X on Mac OSx other
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Base / Mysql / Automatic connection and authentication

Post by Villeroy »

I may be wrong, but I think, the database tries to establish it's own connection instead of using the one established by the macro. My problem is, that a desktop with OpenOffice.org is not enough to test the issue.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dme69
Posts: 4
Joined: Fri Oct 10, 2008 10:02 pm

Re: Base / Mysql / Automatic connection and authentication

Post by dme69 »

i just try here at home and it is the same problem ...
OOo 3.0.X on Mac OSx other
dme69
Posts: 4
Joined: Fri Oct 10, 2008 10:02 pm

Re: Base / Mysql / Automatic connection and authentication

Post by dme69 »

Hello all.

I don't know if it is a good idea but ... it seems to work ...

I had that to the connection macro :

Code: Select all

oDatenquelle.Password = "myPassword"
It seems to work.
OOo 3.0.X on Mac OSx other
Post Reply