mysqli锟斤拷展锟斤拷PHP5.0.0锟叫憋拷锟斤拷锟诫。Mysql Native锟斤拷锟斤拷锟斤拷PHP5.3.0锟芥本锟叫憋拷锟斤拷锟诫。
通锟矫碉拷Unix锟街凤拷锟斤拷锟叫伙拷锟斤拷锟絇HP锟缴帮拷装锟侥讹拷锟斤拷锟狡版本锟斤拷锟斤拷然锟斤拷些锟斤拷锟斤拷锟狡版本通锟斤拷锟结被锟斤拷锟斤拷为支锟斤拷锟斤拷锟斤拷mysql锟斤拷展锟侥o拷 锟斤拷食锟斤拷展锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷影锟斤拷陌锟阶帮拷锟斤拷锟剿对帮拷锟斤拷锟斤拷募锟斤拷锟斤拷选锟斤拷锟斤拷玫姆锟斤拷邪姹撅拷锟斤拷锟揭拷锟�
锟斤拷锟斤拷锟斤拷锟経nix锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷PHP锟斤拷锟斤拷锟狡帮拷锟斤拷mysqli锟斤拷展锟斤拷锟矫o拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭� 锟斤拷源锟诫构锟斤拷PHP锟斤拷锟斤拷锟斤拷锟较o拷锟绞癸拷锟絤ysql锟斤拷展锟斤拷锟斤拷PHP源锟斤拷锟诫构锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭匡拷锟斤拷指锟斤拷每锟斤拷锟斤拷展 使锟斤拷什么锟酵伙拷锟剿库。
使锟斤拷Mysql Native Driver 锟斤拷锟狡硷拷锟斤拷选锟筋,锟斤拷锟斤拷锟斤拷锟斤拷锟杰诧拷锟揭伙拷锟斤拷锟揭恍㎝ysql Client Library锟斤拷锟斤拷锟斤拷姆锟斤拷锟斤拷锟斤拷浴锟� 什么锟斤拷Mysql锟斤拷然锟斤拷锟斤拷锟斤拷锟斤拷锟叫讹拷Mysql Native Driver 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷
/path/to/mysql_config锟斤拷锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷锟斤拷mysql锟酵伙拷锟斤拷/锟斤拷锟斤拷mysql锟斤拷锟斤拷说锟�mysql_config锟斤拷锟斤拷位锟矫★拷
PHP 锟芥本 | 默锟斤拷 | 锟斤拷锟斤拷选锟斤拷: mysqlnd | 锟斤拷锟斤拷选锟斤拷: libmysql | 锟斤拷锟斤拷锟斤拷志 |
---|---|---|---|---|
5.0.x, 5.1.x, 5.2.x | libmysql | 锟斤拷锟斤拷锟斤拷 | --with-mysqli=/path/to/mysql_config | |
5.3.x | libmysql | --with-mysqli=mysqlnd | --with-mysqli=/path/to/mysql_config | mysqlnd is now supported |
5.4.x | mysqlnd | --with-mysqli | --with-mysqli=/path/to/mysql_config | mysqlnd is now the default |
锟斤拷注锟斤拷Mysql锟斤拷展锟酵客伙拷锟剿匡拷锟角匡拷锟斤拷锟斤拷锟缴伙拷系摹锟斤拷锟斤拷纾拷锟斤拷锟绞癸拷锟絣ibmysql锟斤拷锟絤ysql锟酵伙拷锟剿匡拷锟斤拷锟斤拷锟斤拷Mysql锟斤拷展锟斤拷使锟斤拷 Mysql Native Driver锟斤拷锟斤拷锟斤拷mysqli锟斤拷展锟斤拷锟斤拷锟叫碉拷锟斤拷展锟酵客伙拷锟剿匡拷锟剿筹拷锟斤拷强锟斤拷艿摹锟�
锟斤拷锟斤拷锟绞撅拷锟绞癸拷锟組ysql Client Library锟斤拷libmysql锟斤拷锟斤拷锟斤拷锟斤拷mysql锟斤拷展锟斤拷锟斤拷锟斤拷mysqli锟斤拷 PDO Mysql锟斤拷展使锟斤拷Mysql Native Dirver锟斤拷锟斤拷为锟酵伙拷锟剿库)锟斤拷
./configure --with-mysql=/usr/bin/mysql_config \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd [other options]
锟斤拷windows锟较o拷PHP通锟斤拷使锟矫讹拷锟斤拷锟狡帮拷装锟斤拷锟斤拷锟叫帮拷装锟斤拷
锟斤拷PHP锟斤拷装锟斤拷锟斤拷锟斤拷锟斤拷锟绞癸拷锟斤拷锟斤拷锟斤拷通锟斤拷一些锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷mysqli锟斤拷指锟斤拷锟酵伙拷锟剿库。
mysqli锟斤拷展默锟较诧拷锟斤拷锟结开锟斤拷锟斤拷锟斤拷锟�php.ini锟斤拷php_mysqli.dll锟斤拷锟紻LL 锟斤拷锟诫开锟斤拷锟斤拷为锟斤拷锟斤拷锟斤拷要锟揭碉拷php.ini锟侥硷拷锟斤拷通锟斤拷锟斤拷c:\php锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷要确锟斤拷删锟斤拷锟斤拷 [PHP_MYSQLI]锟斤拷锟斤拷锟叫碉拷extension=php_mysqli.dll一锟斤拷锟斤拷锟阶碉拷注锟酵凤拷锟脚o拷锟街号o拷锟斤拷
锟斤拷锟解,锟斤拷锟斤拷锟较o拷锟绞癸拷锟組ysql client library锟斤拷libmysql锟斤拷锟斤拷为mysqli锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷要确锟斤拷PHP锟斤拷锟皆凤拷锟斤拷 锟酵伙拷锟剿匡拷锟斤拷募锟斤拷锟組ysql Client Library锟斤拷为锟侥硷拷libmysql.dll锟斤拷锟斤拷锟斤拷windows锟斤拷PHP锟街凤拷锟斤拷锟叫★拷 锟斤拷锟斤拷募锟斤拷锟揭拷锟絯indows系统锟斤拷PATH锟斤拷锟斤拷锟斤拷锟斤拷锟叫才匡拷锟皆憋拷锟缴癸拷锟斤拷锟截★拷锟介看FAQ锟侥碉拷 锟斤拷锟斤拷锟斤拷锟斤拷锟揭碉拷PHP目录锟斤拷Windows锟斤拷PATH锟斤拷锟剿斤拷锟斤拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷PATH锟斤拷 锟斤拷libmysql.dll锟斤拷锟斤拷锟斤拷Windows锟斤拷系统目录锟斤拷通锟斤拷锟斤拷c:\Windows\system锟斤拷也锟斤拷锟斤拷锟矫的o拷 通锟斤拷系统目录默锟较撅拷锟斤拷系统锟斤拷PATH锟斤拷锟斤拷锟斤拷锟斤拷锟铰★拷然锟斤拷锟斤拷锟斤拷锟斤拷强锟揭凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
锟斤拷锟斤拷锟斤拷锟轿猴拷PHP锟斤拷展锟斤拷锟斤拷锟斤拷php_mysqli.dll锟斤拷锟斤拷PHP指锟斤拷 extension_dir锟斤拷锟皆憋拷锟斤拷锟斤拷为PHP锟斤拷展位锟矫碉拷目录路锟斤拷锟斤拷 锟介看windows锟斤拷装锟斤拷锟斤拷锟街诧拷锟斤拷锟斤拷锟节此碉拷一锟斤拷锟斤拷锟斤拷锟斤拷PHP 5锟斤拷 extension_dir指锟斤拷锟街碉拷锟�c:\php\ext锟斤拷
Note:
锟斤拷锟斤拷锟斤拷锟絯eb锟斤拷锟斤拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥达拷锟斤拷"Unable to load dynamic library './php_mysqli.dll'"锟斤拷 锟斤拷锟斤拷锟斤拷锟轿拷锟较低筹拷锟斤拷薹锟斤拷业锟�php_mysqli.dll锟斤拷锟斤拷libmysql.dll锟斤拷
锟斤拷windows锟较o拷锟斤拷锟斤拷PHP 5.3锟斤拷锟斤拷掳姹撅拷锟�mysqli锟斤拷展默锟较匡拷锟斤拷锟斤拷使锟斤拷Mysql Native Driver锟斤拷 锟斤拷锟斤拷锟剿碉拷悴伙拷锟揭拷锟斤拷墓锟斤拷诜锟斤拷锟�libmysql.dll锟斤拷锟斤拷锟矫★拷