Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How php7 installs mysqli extensions

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Php7 how to install mysqli extension, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

I. installation steps

1. Find the mysqli under the php7.2 ext directory.

2. Enter / usr/local/php7.2/bin/phpize.

3. Execute the code under the mysqli folder.

. / configure-- with-php-config=/usr/local/php/bin/php-config--with-mysqli=/usr/bin/mysql_config

4 、 make .

5 、 make install .

Problem 1: if you can't find mysql_config, you may not have mysql-devel installed.

Resolution steps

1. The source where MySQL needs to be installed

2. The relevant repo of MySQL will appear in the / etc/yum.repos.d/ directory.

3 、 yum install mysql-devel

Problem 2: when installing mysqli, error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory appears

Resolution steps

1. Vim / home/tmp/php-7.2.11/ext/mysqli/mysqli_api.c (find your installation directory here)

2. Modify the path of line 36 of the file

/ ext/mysqlnd/mysql_float_to_double.h

Modify to

/ home/tmp/php-7.2.11/ext/mysqlnd/mysql_float_to_double.h

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report