Jump to content
php.lv forumi

Konektēšanās pie datu bāzes


xfr33

Recommended Posts

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 by xfr33
Link to comment
Share on other sites

> 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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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ā :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...