Home >Backend Development >PHP Tutorial >Use mysql's load data local infile in php

Use mysql's load data local infile in php

WBOY
WBOYOriginal
2016-07-06 13:51:111504browse

I want to execute mysql's load data local infile statement in a php script. I use pdo to link the database Use mysql's load data local infile in php
as shown in the figure. The data cannot be written. How to use it? Solve

Reply content:

I want to execute mysql's load data local infile statement in a php script. I use pdo to link the database Use mysql's load data local infile in php
as shown in the figure. The data cannot be written. How to use it? Solve

In the mysql configuration file, configure local-infile=0

Check whether the semicolon in front of extension=php_pdo_mysql.dll in php.ini has been removed

You have to take pictures of all the error messages, my dear! !

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn