| PHP ・・・ャ≪・/TH > | ||
|---|---|---|
| ・・・・若墁/A > | 罨<・・若墁/A > | |
篁ヤ・・・∽違・MySQL・・若帥・若鴻泣若・若吾・≪・祉鴻・・純・・障・ MySQL・・≪・・・荅括完・・ ・宴・ http://www.mysql.com/・・・・障・
MySQL ・・・㏍ャ<潟・・http://dev.mysql.com/doc/・・・・障・
篁ヤ・・・∽違・・・・純・・・・・MySQL・泣・若・・絎・・・HP・・潟・ ・・ゃ・・綽 荀・・・・障・
configure・・・激с刵VAR CLASS="option" >--with-mysql[=DIR]・ 篏睡・・・・・・・・PHP・・MySQL・・若帥・若鴻吾・≪・祉・ ・・・純・・・障・
PHP 4・с・・・・激с・ --with-mysql・・・・・・・ф・鴻・ ・・c・・障・・・・篏・・≦鴻・・・・・configure・・・激с・ --without-mysql・篏睡・・綽 荀・ ・・・с・・・・障・PHP 4・ЎySQL・ゃ潟鴻・若・IR・吾・・鴻・絎・・・・c ・翫・PHP・・・潟・・・・MySQL・・・ゃ≪潟・・ゃ・・・ 篏睡・・障・ Windows・с・DLL・・絮・・・PHP 4・・・莨若障・・・障・ (auth-mysql・・・・ÅMySQL・篏睡・・篁・・≪・・宴若激с絎茵・・・・若吟・ ・・潟・・・・・・ゃ・・・篏帥・鴻・с・・・・・・・ --with-mysql=/path/to/mysql ・・・・ńySQL・・ゃ潟鴻・若・・c・・・・・絎・・・鴻・с・ ・・・・・・PHP・MySQL・・・・ゃ潟鴻・若・・・ ・・・ゃ≪潟・・ゃ・・・篏睡・・・・・・・・茵腦・・・帥・・障・
PHP 5・с・MySQL・・・・・・・・・・с・・鴻・・・・PHP・ńySQL・・ゃ・・・ 篁絮・・障・・ ・・・・宴・・膣違・ゃ・・・ FAQ ・・・с・・・・・・
・・・ySQL・≦宍・≪吾ャ若・・4.1.0篁ラ・・ySQL・・・若吾с潟с・篏・・障・・ ・・篁ラ・・ゃ・・・MySQLi・篏睡・・・ 筝・・・
| 茘・ |
・・・≦宍・≪吾ャ若・・ecode・≦宍・≪吾ャ若・・・・・㏍若・・・翫・ PHP・・・・・激ャ・儀・・・≪・・蕁・・榊・・・・醇с・・・障・ ・・荅括完・・ ・宴・ゃ・・・ recode・≦宍・≪吾ャ若・・・с・・・・・・ |
羈・: latin (・・・・・)篁ュ・・・絖・祉・・綽 荀・・・・翫・ 篏睡・・・絖・祉・・・泣・若・・・鴻・・・潟潟・ゃ・・(・・潟・・・с・) libmysql・・ゃ潟鴻・若・・綽 荀・・・・障・
・・・・・∽違・篏・・php.ini・・┃絎・・・紊・・・障・
茵・1. MySQL荐㊤・・・・激с刵/B >
| ・・ | ・・・・・ | 紊・眼・・・/TH > |
|---|---|---|
| mysql.allow_persistent | "On" | PHP_INI_SYSTEM |
| mysql.max_persistent | "-1" | PHP_INI_SYSTEM |
| mysql.max_links | "-1" | PHP_INI_SYSTEM |
| mysql.default_port | NULL | PHP_INI_ALL |
| mysql.default_socket | NULL | PHP_INI_ALL |
| mysql.default_host | NULL | PHP_INI_ALL |
| mysql.default_user | NULL | PHP_INI_ALL |
| mysql.default_password | NULL | PHP_INI_ALL |
| mysql.connect_timeout | "0" | PHP_INI_SYSTEM |
篁ヤ・・・┃絎・・c・・・c・・亜・・・・・・腓冴・障・
MySQL・吾・ ・膓・・ョ・ ・・・純・・・・・・・
・・㏍祉号・・・膓・MySQL・ョ・・・紊ф違
・膓・・ョ・・・・・・㏍祉号・・・ySQL・ョ・・・紊ф違
篁・・・若・・絎・・・・・翫・・・若帥・若鴻泣若・ョ・・・・戎・・・ ・・・・・・・・CP・・若・・激・・・・・・・絎・・・・・翫・・・・ ・・・・医・紊・乿VAR CLASS="literal" >MYSQL_TCP_PORT・ /etc/services・・ mysql-tcp・・潟・・・潟潟・ゃ・・・ MYSQL_PORT絎・違・・・у緇・・・障・ Win32・с・MYSQL_PORT絎・違・帥篏睡・・・障・
篁・・純宴・・・・絎・・・・・翫・・㏍若・・・・若帥・若鴻泣若・・ ・ョ・・・・・・・・・・・・純宴・・・
篁・・泣若・・・絎・・・・・翫・・・・若帥・若鴻泣若・吾・・膓・ ・・戎・・・・・・・・・・・泣若・・ safe mode・с・・・・・障・・
篁・・・若九・・絎・・・・・翫・・・・若帥・若鴻泣若・吾・・膓・ ・・戎・・・・・・・・・・・・若九・ safe mode・с・・・・・障・・
篁・・・鴻・若・・絎・・・・・翫・・・・若帥・若鴻泣若・吾・・膓・ ・・戎・・・・・・・・・・・・鴻・若・ safe mode・с・・・・・障・・
・ョ・・・・号・(・篏:腱)・Linux・с・・・・・号・・・泣若・・・・ ・・・・膈・・・・≧・・・・・篏睡・・・障・
MySQL・≪吾ャ若・с・2腮・・・・・純若劫・篏睡・・・・・障・ ・・・・・純若鴻・・若帥・若号・膓・・・潟・D・с2・・・・・純若鴻・ ・・・・・・・篆・・・・・純若鴻с・
・・・・・・・違・・・・≦宍・≪吾ャ若・у・臂・・・・・・ ・・・≦宍・≪吾ャ若・PHP・ ・・・潟潟・ゃ・・・・・・絎茵・・・・・・㏍・ ・・・・・・・・<・・・翫・・推戎・・・純с・
Since PHP 4.3.0 it is possible to specify additional client flags for the mysql_connect() and mysql_pconnect() functions. The following constants are defined:
茵・2. MySQL client constants
| Constant | Description |
|---|---|
| MYSQL_CLIENT_COMPRESS | Use compression protocol |
| MYSQL_CLIENT_IGNORE_SPACE | Allow space after function names |
| MYSQL_CLIENT_INTERACTIVE | Allow interactive_timeout seconds (instead of wait_timeout) of inactivity before closing the connection. |
The function mysql_fetch_array() uses a constant for the different types of result arrays. The following constants are defined:
茵・3. MySQL fetch constants
| Constant | Description |
|---|---|
| MYSQL_ASSOC | Columns are returned into the array having the fieldname as the array index. |
| MYSQL_BOTH | Columns are returned into the array having both a numerical index and the fieldname as the array index. |
| MYSQL_NUM | Columns are returned into the array having a numerical index to the fields. This index starts with 0, the first field in the result. |
篁ヤ・・・MySQL・・若帥・若鴻・・膓・・・・・・絎茵・・腟・・・潟若・ ・阪・・ョ・・・㏍・箴・с・
| ・・・・若墁/A > | ・・若 | 罨<・・若墁/A > |
| msql | 筝・・祉 | mysql_affected_rows |