Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
PostPosted: Wed Apr 18, 2012 9:19 pm 
Offline
New to forums
New to forums

Joined: Sun Apr 15, 2012 6:53 pm
Posts: 4
I'm attempting to disable MySQL strict mode on my database by using this query:
SET @@global.sql_mode= '';

but I receive this error: #1227 - Access denied; you need the SUPER privilege for this operation

I've read that you can also edit a file, but I'm not seeing this file in my directory structure:

Quote:
Open your "my.ini" file within the MySQL installation directory, and look for the text "sql-mode".
Find:
Code:

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Replace with:
Code:

# Set the SQL mode to strict
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"



Thanks.


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 11:45 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9232
Location: Seattle
You can't change global variables or the global .ini file. Try setting it on a session basis instead:

SET @@SESSION.sql_mode= '';


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
It is currently Tue May 21, 2013 12:01 am
Powered by phpBB® Forum Software © phpBB Group