URL for the native mysql connector

View: New views
2 Messages — Rating Filter:   Alert me  

URL for the native mysql connector

by Fernand Vanrie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hallo all

i need to connect over  a NATIVE Mysql connector

my code for a odbc connections is:
 sURL = "sdbc:odbc:"myconnectionname"
'sdbc = protocol
'odbc = subprotocol
'myconnectionname = name off the wanted odbc connection


 oManager = CreateUnoService("com.sun.star.sdbc.DriverManager")
  oCon = oManager.getConnection(sURL)

wath sould the URL  been  for a native Mysql connector ???

thanks for any hint

Fernand



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: URL for the native mysql connector

by Fernand Vanrie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK

founded myself in the metadata off the same connection but opened via
the BaseContext

the url looks like: "sdbc:mysql:mysqlc:192.168.0.63:3306/pmgdbase"

thanks any howe

Fernand Vanrie wrote:

> hallo all
>
> i need to connect over  a NATIVE Mysql connector
>
> my code for a odbc connections is:
> sURL = "sdbc:odbc:"myconnectionname"
> 'sdbc = protocol
> 'odbc = subprotocol
> 'myconnectionname = name off the wanted odbc connection
>
>
> oManager = CreateUnoService("com.sun.star.sdbc.DriverManager")
>  oCon = oManager.getConnection(sURL)
>
> wath sould the URL  been  for a native Mysql connector ???
>
> thanks for any hint
>
> Fernand
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...