I've installed mysql version 5.1.55 from the source. Installed perl rpm version- perl-5.8.8-32.el5_5.2.
cpan -i Bundle::DBD::mysql
DBD::mysql DBI ExtUtils::MakeMaker Perl Term::ReadKey Test::Simple
Now I've one script to check if I could connect to mysql. Here is the script which I used to test -
However on execution I get following error -#!/usr/bin/perl -w use strict; use warnings; use DBI; my $db="test"; my $host="localhost"; my $user="test"; my $password="test"; #connect to MySQL database my $dbh = DBI->connect ("DBI:mysql:database=$db:host=$host",$user,$pas +sword) or die "Can't connect to database: $DBI::errstr\n"; #disconnect from database $dbh->disconnect or warn "Disconnection error: $DBI::errstr\n"; exit;
It would be really great if you can guide me to resolve this issue.perl: symbol lookup error: /usr/lib64/perl5/site_perl/5.8.8/x86_64-lin +ux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init
In reply to DBD::mysql error by liony301
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |