|
|
|
Помогите наити ошибку
|
|||
|---|---|---|---|
|
#18+
Privet, esli esti vremea , pomogite rozobratisea v sledushcem : mojite posmotreti gde oshibka ? Esti baza mysql na drugom servere delaiu mysqldump na localahost preabrazuiu v mysql Znacit poluciaiutsea 2 bazi mysql: "dom" i "dom_local", Provereaiu tablitu AdmContact iz obeih baz esli bili sdelani izmenenia: my $server1 = ' '; my $db1 = 'dom'; my $username1 = 'reb' ; my $password1 = '123' ; $dbh = DBI->connect("dbi:mysql:$db1:$server1", $username1, $password1, { RaiseError => 1 }); ##########################################################3 my $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"; } vidaet oshibku : SELECT command dinied for user on kak mne postupiti ?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.07.2004, 11:24 |
|
||
|
|

start [/forum/topic.php?fid=47&fpage=681&tid=1854986]: |
0ms |
get settings: |
7ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
2ms |
| others: | 204ms |
| total: | 340ms |

| 0 / 0 |
