568

Ajutatima sa gasesk greshala

Ajutatima sa gasesc greshala: a baza mysql pe un server fac mysqldump pe localhost deci am 2 baze: dom si dom_local, Verific tabelul AdmContact din ambele baze pentru a vede daca au fost facute modificari:my $server1 = ' ';my $db1 = 'dom';my $username1 = 'reb' ;my $password1 = '123' ;$dbh = DBI->connect("dbi:mysql:$db1:$server1", $username1, $password1, { RaiseError => 1 });##########################################################3my $server2 = 'localhost';my $db2 = 'dom_local';my $username2 = ' ' ;my $password2 = ' ' ;my $dbh2 = DBI->connect("dbi:mysql:$db2:$server2", $username2, $password2, { RaiseError => 1 });#############################################################$query="SELECT dom_local.AdmContact.domain_name FROM dom_local.AdmContact, dom.AdmConatc WHERE dom_local.AdmContact.id=dom.AdmContact.id";$sth=$dbh->prepare($query) or die " Nu poate cere query: \n";$sth->execute() or die "Nu poate indeplini: \n";while (@row = $sth->fetchrow_array) {print "@row\n";}imi da gresahala ca : comanda SELECT dinied pentru userul de pe localhost cum ar trebui sa procedez ?
0