2 messages in com.mysql.lists.perlMake Test fails at DBI->connect
FromSent OnAttachments
Ian McDonald13 Aug 1999 04:59 
Jochen Wiedmann13 Aug 1999 05:46 
Subject:Make Test fails at DBI->connect
From:Ian McDonald (ian.@prosumsw.com)
Date:08/13/1999 04:59:53 AM
List:com.mysql.lists.perl

Hi,

I am attempting to install mysql, but the "make test" command fails with an "access denied for user" error at the first attempt to connect to the database. This is troubling, because I started up the server with a --skip-grant-tables option, and my ODBC driver can connect to it fine.

My first attempt was to load this was from the CPAN module, which failed make test, even when I used --skip-grant-tables (sp). When repeated manually, I discovered that CPAN seemed to have installed DBI and ShowTable OK, but the problem was with msql-mysql-modules.

Help!

System information:

# uname -a SunOS cloud 5.5.1 Generic_103640-12 sun4m sparc SUNW,SPARCstation-20 # gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95/specs gcc version 2.95 19990728 (release) # make -v GNU Make version 3.77, by Richard Stallman and Roland McGrath. Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Report bugs to <bug-@gnu.org>. # perl -v This is perl, version 5.005_03 built for sun4-solaris

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.

#

Output from Make command: #make test

PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib -I/usr/local/lib/pe rl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00503 -e 'use Test::Harness qw (&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/00base............ok t/10dsnlist.........DBI->connect failed: Access denied for user: 'root@localhost ' (Using password: YES) at t/10dsnlist.t line 45 Cannot connect: Access denied for user: 'root@localhost' (Using password: YES) Either your server is not up and running or you have no permissions for acessing the DSN DBI:mysql:database=test. This test requires a running server and write permissions. Please make sure your server is running and you have permissions, then retry. dubious Test returned status 10 (wstat 2560, 0xa00) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay