Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
bobbyg
Worker
Worker



Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Mon Sep 05, 2011 8:37 am Reply with quote

Invalid query: The used command is not allowed with this MySQL version114/home/content

MySql is not setup for "LOAD DATA LOCAL INFILE" to work. I use this MySql statement because it takes just a few seconds to insert the 10 mb data feed into MySql.

It was stated to Ensure that this is in the server my.ini file:
(trying to using the php5.ini file instead)

[mysqld]
local-infile=1

[mysql]
local-infile=1

Still getting the error first mentioned
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Sep 07, 2011 4:05 am Reply with quote

@ bobbyg - not sure what this has to do with this topic?

[Moved by Raven 9/7/2011]
 
View user's profile Send private message Send e-mail
bobbyg







PostPosted: Wed Sep 07, 2011 3:29 pm Reply with quote

Did not find another that dealt with it but since this topic covered php 5, php.ini and Go Daddy I placed it here. I am still getting the invalid query and thought maybe someone could suggest an alternative. I do not have access to the source, so I have to fix via php5.ini.
 
killing-hours
RavenNuke(tm) Development Team



Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx

PostPosted: Wed Sep 07, 2011 9:40 pm Reply with quote

Don't know if this will help you at all...

http://search.cpan.org/~ctbrown/MySQL-Slurp-0.28/lib/MySQL/Slurp.pm

Also, if I'm understanding your post correctly... here is what I found on the mysql website as the last comment on this subject found here: http://dev.mysql.com/doc/refman/5.0/en/load-data-local.html

Quote:
I found this solution on another site.. in case the thread gets deleted I'll copy & paste it below.. Here is the original link:
http://forums.westhost.com/showthread.php?t=7010#6

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


This would mean you need complete access to your server in order to make changes to the server itself.

_________________
Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett 
View user's profile Send private message
Guardian2003







PostPosted: Thu Sep 08, 2011 1:13 am Reply with quote

bobbyg wrote:
Invalid query: The used command is not allowed with this MySQL version114/home/content


Ah, that indicates a MySQL version of 5.1.14 and I think LOAD DATA LOCAL INFILE only works in 5.1.17 (though of course I could be wrong) - something worth checking though.
 
bobbyg







PostPosted: Thu Sep 08, 2011 12:02 pm Reply with quote

Thanks, the Go Daddy support group responded with using php5.ini to override my.ini. I thought this was wrong, but then again, since I don't have direct access to the server I had no way to check out.
 
bobbyg







PostPosted: Thu Sep 08, 2011 1:13 pm Reply with quote

Finally received an answer that made sense from Go Daddy. I will have to move over to a virtual dedicated or a dedicated server and then I can have the mysql set up as I need it.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©