mysql -u user_name -p database_name < newscoop/install/sql/campsite_core.sql
CREATE TABLE `LocationContents` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `poi_name` varchar(1023) NOT NULL, `poi_link` varchar(1023) NOT NULL DEFAULT '', `poi_perex` varchar(15100) NOT NULL DEFAULT '', `poi_content_type` tinyint(4) NOT NULL DEFAULT '0', `poi_content` text NOT NULL, `poi_text` text NOT NULL, `IdUser` int(10) unsigned NOT NULL DEFAULT '0', `time_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `location_contents_poi_name` (`poi_name`(64)) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `Multimedia` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `media_type` varchar(255) NOT NULL DEFAULT '', `media_spec` varchar(255) NOT NULL DEFAULT '', `media_src` varchar(1023) NOT NULL DEFAULT '', `media_height` int(11) NOT NULL DEFAULT '0', `media_width` int(11) NOT NULL DEFAULT '0', `options` varchar(1023) NOT NULL DEFAULT '', `IdUser` int(10) unsigned NOT NULL DEFAULT '0', `time_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `multimedia_media_type` (`media_type`(32)), KEY `multimedia_media_src` (`media_src`(64)) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
A variable-length string. M represents the maximum column length in characters. In MySQL 5.0, the range of M is 0 to 255 before MySQL 5.0.3, and 0 to 65,535 in MySQL 5.0.3 and later. The effective maximum length of a VARCHAR in MySQL 5.0.3 and later is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used. For example, utf8 characters can require up to three bytes per character, so a VARCHAR column that uses the utf8 character set can be declared to be a maximum of 21,844 characters.http://dev.mysql.com/doc/refman/5.0/en/string-type-overview. html
It looks like you're new here. If you want to get involved, click one of these buttons!