|
Search:     Advanced search
Browse by category:
Glossary

How to turn off MySQL Strict Mode

Add comment
Votes: 0
Comments: 0
Posted: 22 Mar, 2008
by: Pope L.
Updated: 02 Aug, 2008
by: Pope L.
By default, MySQL is enabled with strict_mode ON.
Mambo currently does not fully support MySQL5.x in strict_mode (this is on the roadmap and will be dealt with when we move to database portability so Mambo will run on other database servers, not just MySQL).

So, for now, strict_mode needs to be turned off.
This can be done in two ways...

Open your "my.ini" file within the MySQL installation directory, and look for the text "sql-mode".
Find:
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Replace with:
# Set the SQL mode to strict
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Or, you can run an SQL query within your database management tool, such as phpMyAdmin:

SET @@global.sql_mode= '';
If you have any questions about this, just post on the Mambo forums.
Others in this Category
document How secure is Mambo?
document Blocking direct access to scripts in your wrapper
document How to install templates on your Mambo site
document How to move your Mambo site
document How to change the template name
document Troubleshooting the WYSIWYG editor
document Lost your admin password?
document Database function failed with error 1054
document Popups not working?
document Incorrect Itemid's
document CAPTCHA not working
document Working with META tags
document Blank or 'White' Pages
document FAQ: "This Category is currently empty"
document How to find your version of PHP & other useful information
document What to do when you get a site is temporarily unavailable error
document session save path issues
document Changing/Creating your own favicon
document FAQ: Checked In/ Checked Out
document How to use Mambo Modules
document How to determine Absolute Path

RSS