Why can't I use LOAD DATA LOCAL with PDO even though I can from cli client?

前端 未结 2 1626
谎友^
谎友^ 2020-12-17 05:21

I recently upgraded my Ubuntu 10.04 dev server to 14.04. It is actually a fresh install. PHP version was 5.4.15, and is now PHP 5.5.9. MySQL went from 5.1.67 to 5.5.37.

相关标签:
2条回答
  • 2020-12-17 06:15

    Installing php5-mysqlnd to replace php5-mysql fixed the problem:

    sudo apt-get install php5-mysqlnd
    

    It will automatically remove php5-mysql.

    I'm guessing this is a bug either in php5-mysql or the underlying libmysqlclient.

    0 讨论(0)
  • 2020-12-17 06:17

    This is a bug in php. Please see https://bugs.php.net/bug.php?id=68226 for explanation and workaround.

    0 讨论(0)
提交回复
热议问题