I tried shutting down mysql, then starting it from /usr/libexec/ with:
shell> mysql --local-infile=1
which didn't throw any errors and looks like it should work according to the manual: http://www.mysql.com/doc/en/LOAD_DATA_LOCAL.html
but when I try to load data into a table with:
shell> load data local infile 'data.txt' into table test;
I get the error:
ERROR 1148: The used command is not allowed with this MySQL version
which is the error the manual says I'll get if LOAD DATA LOCAL INFILE is disabled, either in the server or the client.
any thoughts?
________
HONDA CT70
Results 1 to 7 of 7
-
04-02-2004, 07:51 PM #1Junior Member
- Join Date
- Aug 2003
- Posts
- 5
mysql - can we load a data file (enable local-infile)
Last edited by dcardena; 03-24-2011 at 04:31 PM.
-
04-02-2004, 08:17 PM #2
First of all, I'd recommend doing a restart via SSH to make sure that mySQL is launched as WestHost intended it to (i.e. configured to work in this environment).
Secondly, if you can't achieve what you are trying via SSH, you should give PhpMyAdmin a go - it'll let you do what you are trying (and LOTS of other things) via your browser (GUI as opposed to text), and it all works 100% instead of spitting an uninformative error. You can install PhpMyAdmin via Site Applications in your Site Manager.Fayez Zaheer
-
04-02-2004, 08:53 PM #3Junior Member
- Join Date
- Aug 2003
- Posts
- 5
Do you mean an Apache restart or MySQL restart? I don't see how an Apache restart would make a difference- am I missing something? I did restart MySQL- I shut it down and started it with the --local-infile=1 option, that didn't seem to work.
Originally Posted by FZ
Thanks or the PhpMyAdmin suggestion, but I'm doing this in an effort to gain more familiarity with MySQL queries.
Anyone have any luck enabling this option via command line?
________
ASS OILEDLast edited by dcardena; 03-24-2011 at 04:32 PM.
-
04-03-2004, 07:40 AM #4
A "restart" via SSH restarts both the Apache AND mySQL processes.
I'll look into this (try it myself), and if I come up with anything, I'll let you know. If you come up with anything, please post it here too.Fayez Zaheer
-
04-03-2004, 08:46 AM #5
Here's something you can try:
Add this line: local-infile=1
to your /etc/my.cnf file (in the [mysql] "section"), and then restart via SSH and try again...Fayez Zaheer
-
04-03-2004, 09:35 AM #6Junior Member
- Join Date
- Aug 2003
- Posts
- 5
awesome! that did it-
Here's what I did:
edit my.cnf in /etc/:
----------------------------------------
[mysqld]
...(other stuff)
local-infile=1
[mysql]
...(other stuff)
local-infile=1
then shutdown, then start mysql:
----------------------------------------
shell> mysqladmin shutdown
shell> cd /usr/libexec
shell> mysqld
then I have to close that shell connection and open a new one, then:
--------------------------------------------------------------------------------
shell> mysql
and vo?la!
Thanks!
________
Amateur Tube VideosLast edited by dcardena; 03-24-2011 at 04:32 PM.
-
04-03-2004, 10:16 AM #7
Similar Threads
-
Data Modelling tool to use with MySQL
By Hitesh in forum PHP / MySQLReplies: 1Last Post: 10-26-2007, 05:53 PM -
Miva 4 to Miva 5 upgrade problems Did this happen to you?
By brady9111 in forum Miva MerchantReplies: 3Last Post: 05-25-2007, 10:11 AM -
Mailman Installation - chgrp not found / no acceptable cc found in $PATH
By maida in forum CGI Scripts / PerlReplies: 3Last Post: 03-15-2007, 08:32 PM -
How to upgrade MySQL from version 3.x to 4.x w/o Root access
By webgraph in forum PHP / MySQLReplies: 19Last Post: 04-05-2006, 04:42 PM -
SpamAssassin 3.04 - installed fine, but doesn't seem to do anything.
By Aeon in forum E-mail / FTP ManagementReplies: 10Last Post: 07-06-2005, 10:53 AM
Reply With Quote
