#1101 - BLOB/TEXT column 'stext' can't have a default value

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

#1101 - BLOB/TEXT column 'stext' can't have a default value

Postby install » 01. July 2007 19:02

ich versuche mir educara survey zu installieren

apache 2.2
php 5
mysql 5.0
laufen bereits alle

lt installationsanleitung.
Create a new database on your server of choice. Educara SURVEY 2.2
supports either MySQL or PostgreSQL. Execute the appropriate SQL command script
(either survey_mysql.dmp for MySQL users or survey_pgsql.dmp for
PostgreSQL users). This will create the SURVEY tables and populate them
with default values. Please consult your database documentation for
additional information on creating database user accounts, creating
databases, granting the appropriate user permissions, and executing SQL
command scripts.

verwende dazu myphpadmin

wenn ich das file importiere bekomme ich jedoch folgenden fehler:


-- TOC entry 17 (OID 48181)
-- Name: lang_strings; Type: TABLE; Schema: public; Owner:
CREATE TABLE lang_strings(
slang VARCHAR( 255 ) DEFAULT '',
slangname VARCHAR( 255 ) DEFAULT '',
sindex VARCHAR( 255 ) DEFAULT '',
ssubindex VARCHAR( 255 ) DEFAULT '',
stext text DEFAULT ''

MySQL meldet: Dokumentation
#1101 - BLOB/TEXT column 'stext' can't have a default value

kann mir bitte jemand weiterhelfen?
Posts: 4
Joined: 01. July 2007 12:04

Postby Mätes » 02. July 2007 11:16

Nun, wie die Fehlermeldung schon sagt,
Textfelder können kein Default-Value haben.


BLOB and TEXT differ from VARBINARY and VARCHAR in the following ways:
BLOB and TEXT columns cannot have DEFAULT values.

also im CREATE-Statement statt
stext text DEFAULT ''
stext text

User avatar
Posts: 142
Joined: 13. April 2006 09:34
Location: kölle

Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 4 guests