What are the differences between MySQL Native Driver and MySQL Client Library

I want to know the differences between MySQL Native Driver and MySQL Client Library
and when to use both of them

+4
source share
2 answers

There is not much difference at the PHP language level.

  • libmysqlclient, distributed by MySQL, mysqlnd, distributed by PHP.
  • libmysqlclient is part of MySQL, you need to install the MySQL library.
  • Their license is different.
  • mysqlnd supports many plugins (mysqlnd_ms and mysqlnd_qc and ...).
  • Since mysqlnd is part of PHP, its memory may be limited by the configuration of PHP.
  • mysqlnd is the default after 5.4

http://php.net/manual/en/mysqlinfo.library.choosing.php

+7
source

mysql:

mysqlnd:

mysqlnd :

MySQL MySQL:

  • mysql.so mysqlnd.so().

: http://php.net/manual/en/mysqlinfo.library.choosing.php

0

All Articles