Get Started
Company
Copyright © 2022. Logaholic Web Analytics BV
Logaholic needs the Mysql Load Data Infile method to increase the efficiency of importing your data.
If this method is not working on your installation please check the following:
How To Check Mysql Global Variables
Please open your Mysql command shell and execute the following query:
The result we want to see is this:
Variable_name | Value |
---|---|
local_infile | ON |
Check your my.cnf / my.ini
Please check the my.cnf file to see if the correct setting is activated.
Search for the following setting:
local-infile
If you can’t find this please add this line or set it to:
[mysqld] local-infile=1
Then restart Mysql.
Mysql FILE privilege
Your Mysql user must have privilege to use file related queries.
To grant FILE privilege to a Mysql user you can run he following command from your Mysql command shell:
If the LOAD DATA INFILE is still not working, try the following:
If you are using Ubuntu
sudo /etc/init.d/apparmor kill
sudo update-rc.d -f apparmor remove
You just need to add a line to AppAprmor profile to enable reading-writing in the required directory. For example:
/var/www/mysite/** rw,
And then restart AppArmor by this cmd:
/etc/init.d/apparmor stop
/etc/init.d/apparmor start
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld