Hello,

>
> One major showstopper remains though: I cannot connect to MySQL or
> PostgreSQL databases. In order to simplify testing with my current
> libdbi version I've merged your changes on the
> Branch-2008-11-11-cgreen back into a copy of HEAD (the branch was
> against an older version which used an older libdbi version). Running
> make check in this directory results in the following output:

Ok I did it too.

>
> Connection information:
> [...]
> Initial tables schema: [...]
> Initial data schema: [...]

Runing 'make check'

libdbi-drivers test program: $Id: test_dbi_cgreen.c,v 1.1.2.1
2009/02/27 01:22:56 joaohf Exp $

test recallable (r) or legacy (l) libdbi interface? [r]
libdbi driver directory? [/usr/local/lib/dbd]
1 drivers available: mysql
test which driver? mysql

database administrator name? root

database administrator password? root

database hostname? [(blank for local socket if possible)]
database name? [libdbitest]
encoding? [UTF-8]

Connection information:
--------------------
        Legacy mode:            0
        Driverdir:             /usr/local/lib/dbd
        Drivername:            mysql
        Dbdir:
        Initial Database:      mysql
        Database:              libdbitest
        Username:              root
        Password:              root
        Hostname:              localhost
        Version:

[a long long test case]

Completed "libdbi tests": 365 passes, 6 failures, 0 exceptions.

>
> Beggin (sic!) tests:
> Running "libdbi tests"...
> Could not connect. Please check the option settings
>
> I've checked these settings over and over again, to no avail. If I run
> macke check from HEAD on the same installed drivers, I can connect
> without problems. Again, this problem does not occur with the
> sqlite/sqlite3 drivers. I could not infer from your test sources
> whether the option settings are mangled somewhere, so I'm pretty much
> lost here. Did you run the tests successfully using either pgsql or
> mysql?
>

The set_driver_options() and ask_for_conninfo() are functions to
control user input and choices. Could you copy and cut a session
error?

I tested with Postgresql, Mysql, SQlite and DB2.

Some things:

Could you connect with successfully in Mysql or Postgresql?, without
the tests. Like: 'mysql -h localhost -u root -proot [database]'

I need to test with Freebsd (you used it to make this test?) , but it
should work too.

You can set the error level in Mysql and Postgresql. This will be nice
to see what happens.


If you need some more information I can help.

Thanks.

-- 
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br

------------------------------------------------------------------------------
_______________________________________________
Libdbi-drivers-devel mailing list
Libdbi-drivers-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel

Reply via email to