Thread zweite Datenbank verbinden (3 answers)
Opened by chmod777 at 2014-03-17 06:00

GwenDragon
 2014-03-17 12:10
#174184 #174184
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Fiktives Beispiel:
Code (perl): (dl )
1
2
3
4
5
6
7
8
my $host1 = '198.99.8.7';
my $dsn1 = "dbi:mysql:database=db998877;host=$host1;port=3306";
my $dbh = DBI->connect($dsn1, $username1, $passw1);
...
...
my $host2 = '118.111.228.99';
my $dsn2 = 'dbi:mysql:database=database0817;host=$host2;port=3306';
my $dbh2 = DBI->connect($dsn2, $username2, $passw2);

View full thread zweite Datenbank verbinden