Hi Michael,
you've to pass as first argument somethine like:
mysql://pcroot.cern.ch:3456/test
This is the documentation for Connect():
// The db should be of the form: <dbms>://<host>[:<port>][/<database>],
// e.g.: mysql://pcroot.cern.ch:3456/test, oracle://srv1.cern.ch/main, ...
// The uid is the username and pw the password that should be used for
// the connection. Depending on the <dbms> the shared library (plugin)
// for the selected system will be loaded.
When <dbms> is not known it returns a 0 pointer (I'll add this to the
documentation).
Cheers, Fons.
> Michael Clements wrote:
>
> Hello All,
> Every time I try to use:
>
> TSQLServer *db = TSQLServer::Connect("","","")
>
> I end up with a null pointer. Any suggestions?
>
>
> Thanks,
> Mike
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET