At 16:57 01/08/01 +0100, Colin McKinnon wrote:
>At 16:23 01/08/01 +0100, Mark Hannah wrote:
>>Has anyone sucessfully configured the perl DBI module to work with a MySQL
>>database?
>
>I had no end of troubles getting it to work trying to compile the DBI and
>DBD stuff / install from RPMs/tarballs until I installed tham through
>through CPAN:
...and then I actually read your post. Do you have a password set for root
when connecting from localhost? The default MySQL installations used to
come with no password but sensibly advised users to set one ASAP. If you
have the MySQL clients pack installed, you can test this quite easily by
typing
mysql
at the command prompt (logged on as root) and seeing if it connects.
Another useful one is:
mysqladmin status
>Access denied for user: 'root@localhost' (Using password: NO)
....but _why_ do you want to program in Perl ???? ;)
HTH
Colin
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------