I'm stuck on what appears to be a permissions problem in Perl.
In this code...
use Mysql;
$hostname = "localhost";
$databasename = "aep";
$username = "kahuna";
$password = "testing";
#$dbh = Mysql->connect($host);
#$dbh = Mysql->connect($host,$databasename);
#$dbh = Mysql->connect($host,$databasename,$username,$password);
...uncommenting the first "$dbh" succeeds. Uncommenting either of the lines
that follow (where only one "$dbh" is uncommented at a time), produces this
error:
Can't connect to local MySQL server at ./getmessages.pl line 15
I can connect to (and use) the same database using the monitor like this:
unix % mysql -u kahuna -p aep
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 33 to server version: 3.21.33b
I'm on a virtual server, so I would really rather not go through the
bureaucracy of pleading for a MySQL upgrade.
/usr/local/bin/mysqladmin Ver 6.9 Distrib 3.21.33b, for pc-bsdi3.1 on i386
TCX Datakonsult AB, by Monty
Server version 3.21.33b
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 14 hours 47 min 2 sec
Running threads: 1 Questions: 144 Opened_tables: 8 Flush tables: 1 Open
tabl
es: 5
Thanks to all for any help.
Bruce
-----------------------------------------------------------
Send a mail to [EMAIL PROTECTED] with
unsubscribe mysql [EMAIL PROTECTED]
in the body of the message to unsubscribe from this list.