|
|
#1 |
![]() Join Date: Nov 2005
Posts: 5
![]() |
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. |
|
|
|
|
|
#2 |
![]() Join Date: Nov 2005
Posts: 40
![]() |
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 |
|
|
|
|
|
#3 |
![]() Join Date: Nov 2005
Posts: 3
![]() |
Great,
This solved almost all my problems after the installation!!! Thanks!! |
|
|
|
|
|
#4 |
![]() Join Date: Nov 2005
Posts: 1
![]() |
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 |
|
|
|
|
|
#5 | |
![]() Join Date: Aug 2006
Posts: 1
![]() |
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:
|
|
|
|
|
|
|
#6 |
![]() Join Date: Jul 2008
Posts: 1
![]() |
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
![]() |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |