|
From: <And...@Be...> - 2003-02-20 10:11:25
|
Hi Chris, you are almost right: - yes, you can define more datasources in your server.ini / = server.perl like this [db_info seconddb] db_owner =3D username =3D auser password =3D apassword dsn =3D host=3Dbigbox.dbs.com db_name =3D adbname driver_name =3D mysql sql_install =3D long_read_len =3D 65536 long_trunc_ok =3D 0 - to access this, you do not have to do anything special in your = handler - all you have to do is add a key to the SPOPS definition ( i.e. conf/spops.perl ) like this: 'datasource' =3D> 'scounddb', Hope this gets you up and running, regards, Andreas -----Urspr=FCngliche Nachricht----- Von: Chris McDaniel [mailto:Chr...@te...] Gesendet: Donnerstag, 20. Februar 2003 09:20 An: 'ope...@li...' Betreff: [Openinteract-help] second db connection Hello, Hope I'm not making a nuisance of myself, but I have yet another = question. In the server.ini it says things like: [datasource] default_connection_db =3D main and [db_info main] which makes me think that you could have other non-default datasources = and do a [db_info whatever] type statement. I'm not sure if this is = something that is meant to be done, but if so, are there any docs on it? If not, = what would I need to add to my ini file and how would I access this = secondary DB from within a handler? Thanks!=20 Chris McDaniel ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ openinteract-help mailing list ope...@li... https://lists.sourceforge.net/lists/listinfo/openinteract-help |