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

前端 未结 2 1645
谎友^
谎友^ 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.

提交回复
热议问题