PHPMyAdmin saying: The used command is not allowed with this MySQL version

前端 未结 3 1467
轻奢々
轻奢々 2021-01-05 10:06

I am an Java developer new to MySQL.

I want to perform Load data operation using PHPMyAdmin. Load data scripts are verified as it worked pretty well on my Windows O

3条回答
  •  醉话见心
    2021-01-05 10:24

    my friend. There can be few reasons of this error.

    1. php.ini has wrong value for mysql.allow_local_infile. Must be - mysql.allow_local_infile = On

    2. If you are working locally you can try to remove the LOCAL from your SQL query. Maybe MySQL server settings just don't allow you to use the LOCAL keyword

    3. Only if you use cPanel: The problem is the phpMyAdmin that is built into the cPanel interface doesn't use the php built with apache. So you can rebuild apache all day long and it will not change how php is compiled [from cPanel forum]

    Hope this will help you.

提交回复
热议问题