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

前端 未结 3 1454
轻奢々
轻奢々 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.

    0 讨论(0)
  • 2021-01-05 10:27

    I have fixed this problem by removing LOCAL keyword. Please remove LOCAL keyword from the command, it will work for mysql server version 5.5.34-0.

    0 讨论(0)
  • 2021-01-05 10:37

    My friend,

    kindly us the following steps:-

    1. Firstly, remove any current installations of MySQL server

    2. run command in terminal sudo apt-get --purge remove mysql-server

    3. go ahead and obtain the source files and other packages required to compile and install the source.

    4. run command sudo apt-get install mysql-source-5.5 build-essential libncurses5-dev cmake

    5.Go to the directory where the source is.

    The best part while installing from source is that you may configure as per your need like DENABLED_LOCAL_INFILE

    Kindly follow below link:-

    http://www.sudo-juice.com/install-mysql-5-5-from-source-ubuntu-linux/

    0 讨论(0)
提交回复
热议问题