MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > Installation Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old November 6th, 2005, 21:54   #1
JRutterford
 
Join Date: Nov 2005
Posts: 5
JRutterford is on a distinguished road
Exclamation MySQL Store Failed Error

Environment:

Windows 2003 Server
IIS 6
PHP 5.0.5
MYSQL 5.0.15

Background:

I installed Mambo on Windows 2003 server and everything was working well apart from certain parts of the administration section. Certain areas just wouldn't let me update the database. I would get a SQL UPDATE or INSERT error. Keywords (for the aid of searching) of the error were: Store Failed Invalid Value. One such area was the banners. It was impossible to add or update a banner because Mambo was writing an empty integer value to the database. MySQL would just not allow empty values to be used when updating a record.

After lots of searching this forum and google I just couldn't find an answer. I then stumbled across a new inclusion in MySQL 5 that wasn't in earlier versions: STRICT_TRANS_TABLES. This setting does the following according to manual: Enable strict mode for transactional storage engines, and when possible for non-transactional storage engines.

What this setting does is actually tell MySQL how to handle input values that are missing or invalid. Mambo is full of SQL commands that contain missing values. This setting forces MySQL to not allow empty values in fields. Hence all my problems.

Solution:

Open MySQL Administrator and click on Startup Variables. Under the Advanced tab look for the SQL Mode field and remove the

STRICT_TRANS_TABLES,

text from the text box. You can leave any other options there.
JRutterford is offline   Reply With Quote
Old November 8th, 2005, 09:15   #2
Lucho Paton
 
Join Date: Nov 2005
Posts: 40
Lucho Paton is on a distinguished road
Default

I have the same problem...... thanks! by your solution, I work in same enviroment:

Windows 2003 Server
IIS 6
PHP 5.0.5
MYSQL 5.0.15
Lucho Paton is offline   Reply With Quote
Old November 8th, 2005, 10:19   #3
nsemp
 
Join Date: Nov 2005
Posts: 3
nsemp is on a distinguished road
Default

Great,

This solved almost all my problems after the installation!!!

Thanks!!
nsemp is offline   Reply With Quote
Old November 30th, 2005, 01:40   #4
opa
 
Join Date: Nov 2005
Posts: 1
opa is on a distinguished road
Default Thanks

Great job,

I'm working some days on this problem. Your posting solved all my problems with the Mambo installation. After editing the mysql.ini I must restart the mysql-service. Now it works.

My configuration (only for tests and developing):

Win-XP
Apache 2.0.5
php 5.0.5
MySQL 5.0.15

Thanks
opa is offline   Reply With Quote
Old August 6th, 2006, 15:50   #5
sclarke27
 
Join Date: Aug 2006
Posts: 1
sclarke27 is on a distinguished road
Default Ditto for me

I ran into the exact same problems with the same setup. After removing STRICT_TRANS_TABLES from the sql-mode option in mysql.ini along with a mysql restart, my problems all went away. Many thanks for your solution and for saving me lots of time!

my mysql.ini entry. Note that lack of STRICT_TRANS_TABLES

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



Quote:
Originally Posted by opa View Post
Great job,

I'm working some days on this problem. Your posting solved all my problems with the Mambo installation. After editing the mysql.ini I must restart the mysql-service. Now it works.

My configuration (only for tests and developing):

Win-XP
Apache 2.0.5
php 5.0.5
MySQL 5.0.15

Thanks
sclarke27 is offline   Reply With Quote
Old July 30th, 2008, 01:55   #6
spollin
 
Join Date: Jul 2008
Posts: 1
spollin is on a distinguished road
Default

Just wanted to quickly say thank you for this solution. I recently moved our company Intranet to a new server and upgraded to the latest version of MySQL but came across this issue when attempting to add new items. This solution fixed the problem perfectly. Thank you
spollin is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help!!! Mambo does not connect to Mysql DB!? Thalionmel Installation Questions 18 May 28th, 2008 07:05
Error MySQL al importar BD lucasm107 Spanish Forum 9 July 20th, 2005 06:37
Admin Error -Fatal error: main(): Failed opening required '' (include_path='.:/usr/lo Mamarama Installation Questions 1 July 6th, 2005 08:25
Mambo on win2003: mysql login wizzie2k Installation Questions 2 April 2nd, 2005 09:07
SQL Error DB function failed with error number 1064 largan General Questions 4 September 12th, 2004 03:38


All times are GMT -7. The time now is 08:15.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.