MySQL Forums
Forum List  »  Perl

DB connect error
Posted by: Paul Brown
Date: August 24, 2012 03:45PM

Hello all,

I was wondering what this problem was. I write a simple script after installing MySQL, DBD-mysql-4.021, DBI-1.622, and Data-ShowTable-3.3.

MySQL version: mysql Ver 14.14 Distrib 5.5.27, for osx10.6 (i386) using readline 5.1

The script was:

#!/usr/bin/perl

use strict;
use DBI;
use warnings;

# Connect to the database.
my $dbh = DBI->connect("DBI:mysql:database=rendb:localhost",
"renadm", "wiseman",
{'RaiseError' => 1, PrintError => 0, AutoCommit => 1});

print $dbh, "\n";

# Disconnect from the database.
$dbh->disconnect();

exit 0;




The error was:


dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Expected in: flat namespace

dyld: Symbol not found: _mysql_init
Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Expected in: flat namespace

Trace/BPT trap: 5


Perl can't find _mysql_init? After all that installation? I bet this problem is simple. I just don't have the experience yet. Any clues?

Thanks.

Paul Brown

Options: ReplyQuote


Subject
Written By
Posted
DB connect error
August 24, 2012 03:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.