xfr33 Posted January 5, 2012 Report Share Posted January 5, 2012 (edited) Labs vakars! Esmu sācis pētīt jaunu frameworku - Agile Toolkit. Bet pats sākums visnotaļ neveiksmīgs - nevaru piekonektēties pie datubāzes. Kods: $config['dsn']=array('type'=>'mysql', 'hostspec'=>'localhost:3307', 'username'=>'test', 'password'=>'parole', 'database'=>'test', 'charset'=>'utf-8'); Un kļūdas paziņojums: No connection could be made because the target machine actively refused it. Paldies jau iepriekš. Edited January 5, 2012 by xfr33 Quote Link to comment Share on other sites More sharing options...
briedis Posted January 5, 2012 Report Share Posted January 5, 2012 stulbs jautājums, bet vai datubāzes serviss ir iestartēts? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 5, 2012 Report Share Posted January 5, 2012 > Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development, PHP "View" Objects in Agile Toolkit work seamlessly with HTML and jQuery. You can focus on developing Business logic and User Interface logic in pure high-level PHP code. /iz http://agiletoolkit.org/ / Man vienīgajam tas šķiet nepareizi? Quote Link to comment Share on other sites More sharing options...
xfr33 Posted January 5, 2012 Author Report Share Posted January 5, 2012 stulbs jautājums, bet vai datubāzes serviss ir iestartēts? Ir ir iestartēts. Cik skatos citur forumos, tad domāju, ka vainīgi ir porti pa kuriem konektējas mysql. > Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development, PHP "View" Objects in Agile Toolkit work seamlessly with HTML and jQuery. You can focus on developing Business logic and User Interface logic in pure high-level PHP code. /iz http://agiletoolkit.org/ / Man vienīgajam tas šķiet nepareizi? Tas, ka viss tiek rakstīts tīrā PHP? Man šķiet, ka tā ir ērtāk. Quote Link to comment Share on other sites More sharing options...
Val Posted January 5, 2012 Report Share Posted January 5, 2012 Nu, tad varbūt pamēģini 3306? Vai arī noskaidro, uz kura tieši mysql šajā gadījumā ir uzsēdināts? Quote Link to comment Share on other sites More sharing options...
xfr33 Posted January 5, 2012 Author Report Share Posted January 5, 2012 Nu, tad varbūt pamēģini 3306? Vai arī noskaidro, uz kura tieši mysql šajā gadījumā ir uzsēdināts? Vot, 3306 der! Kā var zināt, kurš ports kurā gadījumā der? Quote Link to comment Share on other sites More sharing options...
Val Posted January 5, 2012 Report Share Posted January 5, 2012 Tāpēc nevajag nodarboties ar minēšanu. Ja uz mājas datora tas mysql griežas, tad jau vajadzētu tā kā zināt. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 5, 2012 Report Share Posted January 5, 2012 > Tas, ka viss tiek rakstīts tīrā PHP? Man šķiet, ka tā ir ērtāk. Oi, galīgi saputrojos. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 6, 2012 Report Share Posted January 6, 2012 Ja nezini attiecīgo portu, vienkārši nenorādi. Quote Link to comment Share on other sites More sharing options...
marcis Posted January 6, 2012 Report Share Posted January 6, 2012 @daGrevis - tas diezvai palīdzēs, jo tādā gadījumā tiks lietots defaultais php.ini norādītais ports, kas var arī nesakrist ar to uz kura griežas mysql serveris. Turklāt porta nenorādīšanas iespēju, iespējams, nepieļauj freimworks. root@dev:~# netstat -tapn [...] tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 975/mysqld [...] P.S. Agile Toolkit ir radīts Latvijā :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.