[rt-devel] Mysql DBI error on make install

Alex Krohn alex at gossamer-threads.com
Wed May 16 13:21:40 EDT 2001


Hi Shaun,

Older DBD::mysql drivers did not support the DBI->connect syntax:

        DBI:mysql:dbname=db;host=host

instead you have to use:

        DBI:mysql:db:host

We found this on a lot of systems, might be worth switching to the old
style syntax, or mentioning it in the docs.

Cheers,

Alex

On Wed, 16 May 2001 09:55:04 -0700
"Shaun Hedges" <shaun at lexicom.ab.ca> wrote:

> Hi,
> 
> Has anyone got this before:
> 
> mkdir -p /opt/webrt2/bin
> mkdir -p /opt/webrt2/WebRT/data
> mkdir -p /opt/webrt2/WebRT/sessiondata
> mkdir -p /opt/webrt2/etc
> mkdir -p /opt/webrt2/lib
> mkdir -p /opt/webrt2/WebRT/html
> /usr/bin/perl   tools/initdb 'mysql' '/opt/mysql' '127.0.0.1' 'root'
> 'webrt2' create
> Now creating a database for RT.
> Enter the mysql password for root:
> Creating mysql database webrt2.
> DBI->connect(dbname=;host=127.0.0.1) failed: Unknown MySQL Server Host
> 'host=127.0.0.1' (2) at
> /usr/lib/perl5/site_perl/5.005/DBIx/DataSource/Driver.pm line 74
> Unknown MySQL Server Host 'host=127.0.0.1' (2) at
> /usr/lib/perl5/site_perl/5.005/DBIx/DataSource/Driver.pm line 74, <STDIN>
> chunk 1.
> make: *** [createdb] Error 255
> 
> I noticed some totally different perl/dbi code before getting a similar
> error.  I think it's something to do with the dbi version.
> 
> Any ideas?
> 
> Sorry of this question has already been answered, i'm new to the list.
> 
> Thx
> 
> 
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel

--------------------  Gossamer Threads Inc.  ----------------------
Alex Krohn                        Email: alex at gossamer-threads.com
Internet Consultant               Phone: (604) 687-5804
http://www.gossamer-threads.com   Fax  : (604) 687-5806





More information about the Rt-devel mailing list