I have successfully set up my development site and am trying to connect to mysql. I installed the DBI module. Here is what I am turning up in the error log
###########
#Error
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _mysql_init
Referenced from: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Expected in: dynamic lookup
[Tue Jan 30 18:28:28 2007] [error] [client 72.134.38.10] Premature end of script headers: /Users/calypso_44256/Sites/first.cgi
#end Error
###########
Script I am using to connect
#!/usr/bin/perl
use CGI;
use Date::Manip;
use DBI;
#
print "Content-type: text/html\n\n";
my $server="localhost"; #also tried the valid IP address
my $user="root";
my $pass="******";
my $name="*****";
############
#
my $source = "DBI:mysql:$name:$server";
my $dbh=DBI->connect($source,$user,$pass) or die "Can't Connect to $config{'dataSource'} $DBI::errstr";
Showing messages 1 through 2 of 2.
Problem Connecting to Mysql Please help
2007-04-05 17:33:44
JohnChew
[Reply | View]
Did you ever get a solution to this one? I've been banging my head against it for an hour now.
Problem Connecting to Mysql Please help
2007-04-05 17:33:38
JohnChew
[Reply | View]
Did you ever get a solution to this one? I've been banging my head against it for an hour now.