In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "php how to increase mysql expansion", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "php how to increase mysql expansion" bar!
Php add mysql extension method: 1, install libxml,openssl,mysql,mysql-devel through yum, etc.; 2, modify "--with-mysql=/usr".
This article operating environment: CentOS release 5.8system, PHP5.6 version, Dell G3 computer.
How does php add mysql extensions?
Php add mysql extension:
Os:CentOS release 5.8 (Final)
Php version: http://cn2.php.net/distributions/php-5.6.18.tar.gz
First yum installs libxml, openssl, mysql,mysql-devel, etc.
The congfigure command was searched on the Internet as follows
/ configure-- prefix=/usr/local/php5-- with-config-file-path=/usr-- with-mysql=/usr/include/mysql-- with-mysqli=/usr/bin/mysql_config-- with-libxml-dir=/usr/local/libxml2-- with-openssl
Error report:
Cannot find MySQL header files under / usr/include/mysql
All kinds of theories have been tried on the Internet, but they are all useless. Later, I read the configure file directly. Why do I always report like this?
So first grep 'error: Cannot find MySQL header files under' configure-n
The place where the log appears is here:
. / configure:fiif test "$PHP_MYSQL" = "yes" | | test "$PHP_MYSQL" = "mysqlnd"; then PHP_MYSQLND_ENABLED=yeselif test "$PHP_MYSQL"! = "no"; then MYSQL_DIR= MYSQL_INC_DIR= if test-r $PHP_MYSQL/include/mysql/mysql.h; then MYSQL_DIR=$PHP_MYSQL MYSQL_INC_DIR=$PHP_MYSQL/include/mysql break elif test-r $PHP_MYSQL/include/mysql.h Then MYSQL_DIR=$PHP_MYSQL MYSQL_INC_DIR=$PHP_MYSQL/include break fi if test-z "$MYSQL_DIR"; then {{$as_echo "$as_me:$LINENO: error: test Cannot find MySQL header files under $PHP_MYSQL.Note that the MySQL client library is not bundled anymore!" > & 5 $as_echo "$as_me: error: hgyang Cannot find MySQL header files under $PHP_MYSQL $MYSQL_DIR.Note that the MySQL client library is not bundled anymore!" > & 2;} {(exit 1); exit 1;} } fi
Originally-- with-mysql=/usr is OK, include/mysql has been included, elder brother instantly burst into tears, what a big pit.
Thank you for your reading, the above is the content of "php how to increase mysql expansion". After the study of this article, I believe you have a deeper understanding of how php increases mysql expansion, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.