Jump to content

Recommended Posts

I have received this error from a shell script that I have been using on a many servers now but this time it is different because I dont know what this error could be all about.  I went out and purchased a Virtual Private Server space giving me root access and all that fancy stuff I only 1% about to begin with.  Well when I went to run my script it shot this error out at me:

 

mysql -u myusername -pmypassword uls < ./load-am.sql
ERROR 1148 (42000) at line 1: The used command is not allowed with this MySQL version

 

and here are the contents of that load-am.sql file that I have.

 

load data local infile './AM.dat' into table AM fields terminated by '|';

 

Dont laugh because this took me a solid month to figure out the first time I did this.  This database is supposed to be filled with over a million records and now it wont update because of this little problem of mine.  This is part of my very first database project ever and it was running on three different professional servers over the past two months.  But now some funky error message grrr...  Any help would be great.  Thank you!

Link to comment
https://forums.phpfreaks.com/topic/59219-solved-first-time-error-new-server/
Share on other sites

mysql  Ver 14.7 Distrib 4.1.10a, for suse-linux (i686)

 

I was able to make it work by replacing this:

 

mysql -u myusername -pmypassword uls < ./load-am.sql

 

with this here:

 

mysql -u myusername -pmypassword --local-infile uls < ./load-am.sql

 

Although why this worked I guess you all would be able to tell me more easilly.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.