Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > mysql will not let me load a local file

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-24-2003   #1 (permalink)
Linux User
 
Join Date: Apr 2003
Location: TEXAS
Posts: 314
Send a message via AIM to bignester Send a message via MSN to bignester
mysql will not let me load a local file

ever time i execute this command
Code:
LOAD DATA LOCAL INFILE "pet.txt" INTO TABLE pet;
i get an error that says that this command is not supported with my version of mysql.

I've tried starting my database with this parameter
Code:
mysqld_safe --local-infile=1
I would like to use this feature because the database I'm making will be quite large.
__________________
The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
\"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)
bignester is offline  


Reply With Quote
Old 12-24-2003   #2 (permalink)
Linux Guru
 
Join Date: Apr 2003
Location: London, UK
Posts: 3,284
which version of mysql are you running?

alternativly you can copy the file to the server, and use "Load Data infile "filename"" etc etc
jasonlambert is offline   Reply With Quote
Old 12-24-2003   #3 (permalink)
Linux User
 
Join Date: Apr 2003
Location: TEXAS
Posts: 314
Send a message via AIM to bignester Send a message via MSN to bignester
OK thats was what I was doing wrong. That was what I waws trying to do but I didn't relize that I was trying to upload a local file to the computer I was on rather than the server.
__________________
The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
\"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)
bignester is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2