What the different between MySQL Native Driver and MySQL Client Library

后端 未结 2 594
暖寄归人
暖寄归人 2021-01-17 20:06

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

2条回答
  •  鱼传尺愫
    2021-01-17 20:38

    There is no big difference in the PHP language level.

    • libmysqlclient distributed by MySQL, mysqlnd distributed by PHP.
    • libmysqlclient is part of MySQL, you need install MySQL library.
    • Their license are different.
    • mysqlnd supports a lot of plugins (mysqlnd_ms & mysqlnd_qc & ...).
    • Because mysqlnd is part of PHP, its memory could be limited by PHP configuration.
    • mysqlnd is the default after 5.4

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

提交回复
热议问题