E
E
Evgeny Romashkan2018-10-14 14:55:36
ubuntu
Evgeny Romashkan, 2018-10-14 14:55:36

What is mysqlnd and how to install it in PHP 7?

I use Swoole, it has its own methods for connecting to the database, and the escape method in order to protect itself from SQL injections, judging by the comments in their documentation , it is only available with mysqlnd installed.
How to install this extension in PHP7?
Found only for version 5 of Pyha on php.net : "sudo apt-get install php5-mysqlnd "

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-10-14
@EvgeniiR

Good afternoon It's
very simple.

[email protected]:~$ aptitude search mysqlnd
v   php-mysqlnd                                            -                                                                 
v   php-mysqlnd:i386                                       -                                                                 
p   php-mysqlnd-ms                                         - MySQL replication and load balancing module for PHP             
p   php-mysqlnd-ms:i386                                    - MySQL replication and load balancing module for PHP             
v   php5.6-mysqlnd                                         -                                                                 
v   php5.6-mysqlnd:i386                                    -                                                                 
v   php5.6-mysqlnd-ms                                      -                                                                 
v   php5.6-mysqlnd-ms:i386                                 -                                                                 
v   php7.0-mysqlnd                                         -                                                                 
v   php7.0-mysqlnd:i386                                    -                                                                 
v   php7.1-mysqlnd                                         -                                                                 
v   php7.1-mysqlnd:i386                                    -                                                                 
v   php7.2-mysqlnd                                         -                                                                 
v   php7.2-mysqlnd:i386                                    -                                                                 
v   php7.3-mysqlnd                                         -                                                                 
v   php7.3-mysqlnd:i386

There is a package.
So you can put
ps And about the first part of the question , a lot of information .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question