kalabox Posted February 2, 2007 Report Share Posted February 2, 2007 sveiki, kaaa var ja lapai ir 2 db, paarlikt uz vienu?? vai arii ir varbuut iespeejams dabuut k.kaa piem: ja man ir 2 accounti, un katraa pa 1MYSQl db, un abas atrodas uz 1 servera, kaut kaa izmantot abas?? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 2, 2007 Report Share Posted February 2, 2007 ja abaam ir vienaads UserName un vienaads Passwrd... tad kur ir probleema? mysql_select_db () ? Link to comment Share on other sites More sharing options...
kalabox Posted February 2, 2007 Author Report Share Posted February 2, 2007 vot passw, varu gan uzlikt vienaadus, bet usser name gan neee... Link to comment Share on other sites More sharing options...
kalabox Posted February 2, 2007 Author Report Share Posted February 2, 2007 hmmm, vot tizli uztaisiits ka 2 db, lapa nekaada lielaa nav, bet 2db... Link to comment Share on other sites More sharing options...
andrisp Posted February 2, 2007 Report Share Posted February 2, 2007 Grey_Wolf, kā tu to īsti domāji ? Link to comment Share on other sites More sharing options...
kalabox Posted February 2, 2007 Author Report Share Posted February 2, 2007 un gribeeshana un nekaada lielaa maaceeshana uz 1 db visu paarveidot nav... Link to comment Share on other sites More sharing options...
kalabox Posted February 2, 2007 Author Report Share Posted February 2, 2007 (edited) hmm, un kur te vispaar ir jaaievada dati par 2 db? $cfg['server'] = 'localhost'; $cfg['login'] = ''; $cfg['password'] = ''; $cfg['db1'] = ''; // Users $cfg['db2'] = $cfg['db1']; // Advertisments $cfg['db3'] = ''; // System cik noprotu login ir server alogins un password ir servera parole un zemaak jau ir db dati??... Edited February 2, 2007 by kalabox Link to comment Share on other sites More sharing options...
andrisp Posted February 2, 2007 Report Share Posted February 2, 2007 Vispirms pašam kodam ir jāatbalsta vairākas db. Ar to, ka konfigurācijā, kautkādas vairākas db definēsi, neko nedos. Un vispār tev tur skaidri var redzēt, kur laikam ir paredzēts rakstīt. $cfg['db2'] Link to comment Share on other sites More sharing options...
kalabox Posted February 2, 2007 Author Report Share Posted February 2, 2007 kur?? :D Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 2, 2007 Report Share Posted February 2, 2007 (edited) andrisp --> Tieshi taa arii biju domaajis ;) Ja tiek izveidota konekcija un usernames, paswd ir vienaadas, tobish 1 userim n DB .. tad ar mysql_select_db() leekaa starp vinjaam cik veelies ;) nu var jau USE DB_name .... ar mysql_select_db() sanaak iisaak... P.S. kalabox SHIM FORUMAM IR TAADA POGA KAA EDIT !!!! taa kaa nav ko taisiit postus 1 peec otra.... Edited February 2, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
neprasa Posted February 2, 2007 Report Share Posted February 2, 2007 phpmyadmin ir iespeja copet tabli uz citu db Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 2, 2007 Report Share Posted February 2, 2007 neprasa --> domaa ka tikai PHPMyadmin ir vieniigaa iespeeja? un ko teiksi ja taas DB ir jaizmanto teiksim 3 saitiem? pirmaa DB vienam otraa DB otram treshaa vaac statistiku par 1 un 2 ? taa kaa plika kopeesana ir bezjedziiga.... (un nebuut taa nav tik reta lieta...) P.S. 4e4en --> manupraat ljoti labi saprati ka taa ir parakstiishanaas kljuda.... Link to comment Share on other sites More sharing options...
Recommended Posts