{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12893","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12893/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12893/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12893/events","html_url":"https://github.com/laravel/framework/issues/12893","id":143933246,"number":12893,"title":"PDO::MYSQL_ATTR_LOCAL_INFILE  not working on 5.2.26","user":{"login":"zofe","id":261951,"avatar_url":"https://avatars.githubusercontent.com/u/261951?v=3","gravatar_id":"","url":"https://api.github.com/users/zofe","html_url":"https://github.com/zofe","followers_url":"https://api.github.com/users/zofe/followers","following_url":"https://api.github.com/users/zofe/following{/other_user}","gists_url":"https://api.github.com/users/zofe/gists{/gist_id}","starred_url":"https://api.github.com/users/zofe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofe/subscriptions","organizations_url":"https://api.github.com/users/zofe/orgs","repos_url":"https://api.github.com/users/zofe/repos","events_url":"https://api.github.com/users/zofe/events{/privacy}","received_events_url":"https://api.github.com/users/zofe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T09:06:28Z","updated_at":"2016-03-28T10:39:53Z","closed_at":null,"body":"I've two projects  one Laravel 5.0  and the other Laravel 5.2 (5.2.26),  the second one is  just a rebuilt of first one.\r\nThey both use:\r\nthe same db, same user, same db configuration, on the same mysql server / port.\r\nI've a console command again the same on both projects with:\r\n\r\n    \\DB::connection()->getPdo()->exec(\"LOAD DATA LOCAL INFILE '\" . storage_path('myfile.txt') \r\n    . \"' IGNORE INTO TABLE mytable LINES TERMINATED BY '\\\\n' IGNORE 1 LINES (mytable)\");\r\n\r\nthe configuration of database.php option on both projects is: \r\n\r\n    'options' => [PDO::MYSQL_ATTR_LOCAL_INFILE => true]\r\n\r\nIt works  only on the 5.0  project.  On laravel 5.2  it throw:\r\nSQLSTATE[42000]: Syntax error or access violation: 1148 The used command is not allowed with this MySQL version\r\n\r\n(note on mysql localinfile is on)\r\nif I debug in tinker  i can see that the options is loaded:\r\n\r\n    >>> dd(\\DB::connection()->getConfig('options'))\r\n    array:1 [\r\n      1001 => true\r\n    ]\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/202337828","html_url":"https://github.com/laravel/framework/issues/12893#issuecomment-202337828","issue_url":"https://api.github.com/repos/laravel/framework/issues/12893","id":202337828,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T10:39:53Z","updated_at":"2016-03-28T10:39:53Z","body":"What MySQL version do you have?"}}