On 2001.08.01 16:23 Mark Hannah wrote:
> Has anyone sucessfully configured the perl DBI module to work with a MySQL 
> database?
> 
> After installing the MySql server, I have downloaded the following packages :-
> 
> 1) DBI-1.18 - The DBI module for Perl.
> This installs fine.
> 
> 2) Msql-Mysql-modules-1.2216 - DBI drivers for MySql.
> To install this, I do the following :-
> 
> perl Makefile.pl
> make
> make test
> 
> During "make test" it fails with the folowing error :-
> 
> PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib 
> -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 -e 'use 
> Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/00base............ok
> t/10dsnlist.........DBI->connect(database=test) failed: Access denied for 
> user: 'root@localhost' (Using password: NO) at t/10dsnlist.t line 45
> Cannot connect: Access denied for user: 'root@localhost' (Using password: NO)
>       Either your server is not up and running or you have no
> 

Have you checked that the mysql server is running?

Don't know your distro, but you could try rtus

if it is not up try /etc/rc.d/mysql sta

--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to