Re: [gnome-db] libgda



On Wed, 2004-09-22 at 13:19 -0700, CJ Collier wrote:
> It's been a long time since I've posted about gnome-db and libgda ;)
> 
> So I'm fiddling with the examples from the CVS repo and online manual,
> and I can't seem to find correct docs on how to set up a DSN.  Can you
> point me in the right direction?
> 
> Can anyone point me in the right direction to set up a DSN to talk with
> a MySQL database?
> 
using the example in the docs should work:

<?xml version="1.0"?>
<libgda-config>
  <section path="/apps/libgda/Datasources/sales">
    <entry name="DSN" type="string" value="PORT=1111;DATABASE=test;HOST=localhost"/>
    <entry name="Description" type="string" value="MySQL Test Database in native mode"/>
    <entry name="Password" type="string" value="password"/>
    <entry name="Provider" type="string" value="MySQL"/>
    <entry name="Username" type="string" value="username"/>
  </section>
</libgda-config>

or just use PORT=1111, DATABASE=test ... as the DSN from the gnome-database-properties
application, which is part of libgnomedb
-- 
Rodrigo Moya <rodrigo gnome-db org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]