Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Here I added the last line to enable loading local files into tables. Now everything seems to work fine. Still, I get a strange announcement when I run mysqladmin or mysqlshow:
unknown variable 'loose-local-infile=1'
If I remove the "loose-local-infile=1" line from the [client] group of my.cnf, this message does not appear, but I cannot load files into the database. Now I have that line there and everything works fine. The only issue is that annoying message:
unknown variable 'loose-local-infile=1'
that appears whenever I run mysqladmin or mysqlshow.
Do you have any idea how I could get rid of this and whether it is harmful?
Any suggestions will be appreciated.
According to MySQL, this is compiled to be enabled by default. Have you tried to just enable it in the /etc/rc.d/rc.mysqld file by passing this option there?
The mysql package that comes by default with Slackware 11.0 obviously does not contain that option compiled. I tried what you suggested, hashed the "loose-local-infile" in my.cnf and added "--local-infile=1" as you suggested as a parameter to mysqld_safe. There was no more "unknown variable: loose-local-infile" message, but I was unable to load text files into the database either. I then unhashed the line in my.cnf, and restarted mysql. This time I could load text files, but the message again appeared.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.