ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   Problem Connecting to Mysql Please help
Date:   2007-01-30 20:27:36
From:   Lucci
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";


1 to 2 of 2
1 to 2 of 2