4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
use strict; # security
use diagnostics; # make more detailled -w
use DBI; # for the database-stuff...
my $dbhost = "x.y.z.a"; # on this host is the db
my $dbname = "db"; # name of data base
my $dbreaduser = "read"; # read login name for db
my $dbreadpass = "password"; # read pw for db
my $filerdb = DBI->connect("dbi:mysql:$dbname;host=$dbhost", "$dbreaduser", "$dbreadpass") or die $DBI::errstr;
1
2
3
4
5
6
look DBD::mysql
perl Makefile.PL --cflags='-I'/usr/local/mysql/include'' --libs='-L'/usr/local/mysql/lib' -lmysqlclient -lz -lcrypt -lnsl -lm'
make
make install
4 Einträge, 1 Seite |