On Donnerstag, 22. Juni 2006 15:15 Michael Parker wrote: > Actually, please re-read the sql/README.bayes file, it specifies > where to find the connection string stuff for Pg.
Yes I did. It reads: bayes_sql_dsn DBI:driver:database:hostname[:port] bayes_sql_username dbusername bayes_sql_password dbpassword The bayes_sql_dsn directive describes the data source name that will be used to create the connection to your SQL server. It MUST be in the format as listed above. <driver> should be the DBD driver that you have installed to access your database (initially tested with MySQL, PostgreSQL, and SQLite). <database> must be the name of the database that you created to store the bayes data tables. <hostname> is the name of the host that contains the SQL database server. <port> is the optional port number where your database server is listening. Especially "It MUST be in the format as listed above" doesn't fit. If you read my initial mail with the errors, I showed log info: [21920] dbg: bayes: unable to connect to database: missing "=" after "zmi_sa_bayes:localhost" in connection info string This was with bayes_sql_dsn DBI:Pg:zmi_sa_bayes:localhost and works with bayes_sql_dsn DBI:Pg:dbname=zmi_sa_bayes;host=localhost I would say the docs are not correct, at least to one who is not specialist in configuring DBI. I found the info on the DBI man page, but still the docs here are wrong. If you like, I'll make changes on that wiki page(s), but I'm not sure I do everything correct either. :-) mfg zmi -- // Michael Monnerie, Ing.BSc ----- http://it-management.at // Tel: 0660/4156531 .network.your.ideas. // PGP Key: "curl -s http://zmi.at/zmi3.asc | gpg --import" // Fingerprint: 44A3 C1EC B71E C71A B4C2 9AA6 C818 847C 55CB A4EE // Keyserver: www.keyserver.net Key-ID: 0x55CBA4EE
pgpyM7c7QK1ul.pgp
Description: PGP signature