DBI::mysql still does not work
I tried 2 things
1.
used YaST to install perl-msql-mysql-modules and my perl script failed.
2.
perl -MCPAN -e 'install Bundle:
BI'
perl -MCPAN -e 'install Bundle:
BB::mysql' had a warning probably because it was already installed by yast.
this is my scrip and the error
#!/usr/bin/perl
use DBI;
$name = "scott";
print "hi $name \n";
my $dbh = DBI->connect("DBI:mysql:test","someuser","somepassword");
DBI->connect(test) failed: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2) at ./test.pl line 8
-safe_mysqld was running
-I added /usr/local/mysql/bin to my path with
export PATH=$PATH:/usr/local/mysql/bin
but when I type "which mysql" it is not in the path.
cheers
scott