Web Hosting Talk







View Full Version : MySQL


SuperDon
11-02-2001, 01:59 PM
Hi,

I have had a support request for something I know absolutely nothing about MySQL!! Can anyone give me any tips with this one?

Here it is...

when i try to
connect to the mySQL db through the perl scripts its producing an
error... do your servers run DBI for connecting to the database, or is
there some other method that I should be using?

current perl script to connect to test DB:
use DBI;
$dbh = DBI->connect
("DBI:mysql:tester_uni_db:localhost","tester_unidb","beer");

???Any help would be appreciated. I am running RedHat and Cpanel if that makes any difference.

Cheers.

MaB
11-02-2001, 03:08 PM
What is the error exactly?

Well at your prompt type:
perl -MCPAN -e shell

Then set it up accordingly then type:
install DBI

That should install DBI :)

SuperDon
11-02-2001, 03:14 PM
Thanks.

I have just used WHM to install the DBI module, I will see if that fixes the fault. I have also asked the client for the error.

Vince
11-02-2001, 06:48 PM
Hi,

Be sure to install DBD::mysql, too.

Vince.