Community « Discussion forum « Bug tracker «
BLOB/TEXT column 'description' can't have a default value [Solved]
SQL statements have to change for MySQL 5
This issue has been reported initially reported in Can not install....
During installation of the software, this user receives error messages related to malformed SQl statements.
The root cause of this issue is that MySQL version 5 does not accept default values for blob/large objects anymore.
This is confirmed in the on-line MySQL Manual, at C.1. Server Error Codes and Messages (look for the error code
Workaround: the straightforward way to proceed is to replace the string
This will apply the change both to TEXT and MEDIUMTEXT column types.
Here is the list of scripts to look at:
Code has been modified at the development machine, to make this fully available along next release, due in January 2007.
Also, as a reference file I have attached the database schema reported by phpMyAdmin on the development machine. This could be use against the MySQL engine as an attempt to create the database structure anyway.
During installation of the software, this user receives error messages related to malformed SQl statements.
The root cause of this issue is that MySQL version 5 does not accept default values for blob/large objects anymore.
This is confirmed in the on-line MySQL Manual, at C.1. Server Error Codes and Messages (look for the error code
1101).Workaround: the straightforward way to proceed is to replace the string
TEXT DEFAULT '' by TEXT throughout all scripts.This will apply the change both to TEXT and MEDIUMTEXT column types.
Here is the list of scripts to look at:
actions/actions.phpagents/referrals.phparticles/articles.phpcategories/categories.phpcomments/comments.phpdecisions/decisions.phpfiles/files.phpimages/images.phplinks/links.phplocations/locations.phpscripts/phpdoc.phpsections/sections.phpservers/servers.phpshared/cache.phpshared/values.phptables/tables.phpusers/users.phpversions/versions.php
Code has been modified at the development machine, to make this fully available along next release, due in January 2007.
Also, as a reference file I have attached the database schema reported by phpMyAdmin on the development machine. This could be use against the MySQL engine as an attempt to create the database structure anyway.
Files
| YACS schema 6 12.sql 31,780 bytes, 84 downloads To be used only as a temporary fix, since the schema will be different in version 7.1 Edited by Bernard on Jan. 5 2007 Zoom |
Solution Manager: Bernard
Solution has been fully integrated