Re: [ROOT] mySQL Interface Question

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Oct 05 2001 - 09:55:15 MEST


Hi Jon,

  TSQLServer::Connect() takes 3 arguments. You must specify them all
or the system does not find the right function. After that the MySQL
module will be automatically loaded and a connection to the server will
be established.

Cheers, Fons.



Jon Gans wrote:
> 
> I am trying to follow the interface you described on the web, and the
> first line does work:
> 
> CINT/ROOT C/C++ Interpreter version 5.14.79, Feb 24 2001
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TSQLServer *db = TSQLServer::Connect("mysql://foo.bar")
> Error: class,struct,union or type $TSQLServer not defined
> FILE:/tmp/file8LncMW_cint LINE:1
> Error: No symbol TSQLServer::Connect() in current scope
> FILE:/tmp/file8LncMW_cint LINE:1
> *** Interpreter error recovered ***
> 
> I don't understand why there is that dollor sign, $, in front.
> 
> Thanks
>  jon

-- 
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 7679480



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET