LOAD DATA LOCAL INFILE Access Denied with Error: The Used Command Not Permitted
When executing a PHP script utilizing MySQL's LOAD DATA INFILE, it is possible to encounter the error "Access denied for user ... (using password: yes)". A common workaround is to switch to LOAD DATA LOCAL INFILE, although this may result in the same command failing on another server with the error "The used command is not allowed with this MySQL version".
To resolve this issue without modifying server settings, consider the following approach:
If the command succeeds, it indicates that the issue is caused by server settings specified during compilation. To address this:
While phpMyAdmin may appear to accept CSV files, its operation is distinct from LOAD DATA INFILE. Consult the MySQL documentation for details.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3