In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to install mysqli in php7". In daily operation, I believe many people have doubts about how to install mysqli in php7. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install mysqli in php7". Next, please follow the editor to study!
Php7 install mysqli method: 1, install mysqli extension through make install; 2, find the path of php.ini through phpinfo; 3, uncomment php_mysqi.dll.
The operating environment of this paper: Windows7 system, php-7.1.5, Dell G3.
How does php7 install mysqli?
Experience of installing mysqli extension in centos php7
When the server was newly configured, it was found that php could not connect to mysql. Discovered by phpinfo. The configuration for mysqli is not shown at all. After a series of studies. Summed up. :
Step one:
There is no mysqli configuration in phpinfo because there is no configure mysqli when php7 is installed
Tar zxvf php-7.1.5.tar.gzcd php-7.1.5./configure-- with-php-config=/usr/local/php/bin/php-config-- with-mysqli=/usr/bin/mysql_config Note: / usr/bin/mysql_config this path is your own mysql_config path. You can find make & & make install cp php.ini-development / usr/ through find-name mysql_config. Local/lib/php.inicp sapi/fpm/init.d.php-fpm / etc/init.d/php7-fpmchmod + x / etc/init.d/php7-fpmcd / usr/local/php/etccp php-fpm.conf.default php-fpm.confcp php-fpm.d/www.conf.default php-fpm.d/www.conf/etc/init.d/php7-fpm start starts php
After installation, you will find that phpinfo has mysqli.
Step 2: install the mysqli extension
Methods:
Cd / usr/local/php-7.1.5/ext/mysqli / / to mysqli/usr/local/php/bin/phpize./configure-- with-php-config=/usr/local/php/bin/php-config-- with-mysqli=/usr/bin/mysql_config under the php file ext
Note: the usr/bin/mysql_config path is the same as the first step method.
Makemake testmake install
There should be an mysqli extension by now
Step 3:
Modify php.ini
Find the path to php.ini through phpinfo. Modify the php.ini. Uncomment php_mysqi.dll
End!
At this point, the study on "how to install mysqli in php7" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.