Creating database tables: Database Alerts!
MODx setup couldn’t install/alter some tables inside the selected database.
The following errors had occurred during installation
You have an error in your SQL syntax near ’\’0\’, `username` varchar(50) NOT NULL default \’\’, `lasthit` int(20) NOT N’ at line 2 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_active_users` ( `internalKey` int(9) NOT NULL default \’0\’, `username` varchar(50) NOT NULL default \’\’, `lasthit` int(20) NOT NULL default \’0\’, `id` int(10) default NULL, `action` varchar(10) NOT NULL default \’\’, `ip` varchar(20) NOT NULL default \’\’, PRIMARY KEY (`internalKey`) ) TYPE=MyISAM .
You have an error in your SQL syntax near ’\’0\’, `document` int(10) NOT NULL default \’0\’, PRIMARY KEY (`id`), KEY’ at line 3 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_document_groups` ( `id` int(10) NOT NULL auto_increment, `document_group` int(10) NOT NULL default \’0\’, `document` int(10) NOT NULL default \’0\’, PRIMARY KEY (`id`), KEY `document` (document), KEY `document_group` (document_group) ) TYPE=MyISAM .You have an error in your SQL syntax near ’\’\’, `private_memgroup` TINYINT DEFAULT 0 , `private_webgroup` TINYINT DEFA’ at line 3 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_documentgroup_names` ( `id` int(10) NOT NULL auto_increment, `name` varchar(255) NOT NULL default \’\’, `private_memgroup` TINYINT DEFAULT 0 , `private_webgroup` TINYINT DEFAULT 0 , PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) TYPE=MyISAM .You have an error in your SQL syntax near ’\’0\’, `keyword_id` int(11) NOT NULL default \’0\’, KEY `content_id` (`conte’ at line 2 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_keyword_xref` ( `content_id` int(11) NOT NULL default \’0\’, `keyword_id` int(11) NOT NULL default \’0\’, KEY `content_id` (`content_id`), KEY `keyword_id` (`keyword_id`) ) TYPE=MyISAM .You have an error in your SQL syntax near ’\’0\’, `document` int(11) NOT NULL default \’0\’, `timestamp` int(20) NOT NU’ at line 2 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_log_access` ( `visitor` int(11) NOT NULL default \’0\’, `document` int(11) NOT NULL default \’0\’, `timestamp` int(20) NOT NULL default \’0\’, `hour` tinyint(2) NOT NULL default \’0\’, `weekday` tinyint(1) NOT NULL default \’0\’, `referer` int(11) NOT NULL default \’0\’, `entry` tinyint(1) NOT NULL default \’0\’, KEY `visitor` (`visitor`), KEY `document` (`document`), KEY `timestamp` (`timestamp`), KEY `referer` (`referer`), KEY `entry` (`entry`), KEY `hour` (`hour`), KEY `weekday` (`weekday`) ) TYPE=InnoDB .You have an error in your SQL syntax near ’\’0\’, `data` varchar(255) NOT NULL default \’\’, PRIMARY KEY (`id`) ) TYPE’ at line 2 during the execution of SQL statement CREATE TABLE IF NOT EXISTS `modx_log_hosts` ( `id` int(11) NOT NULL default \’0\’, `data` varchar(255) NOT NULL default \’\’,
.........
and so on!!!!
Has any kind of update been made to your server environment since the first time you installed?
Please provide more details:
Checking if manager/includes/config.inc.php is writable: OK!
php_flag magic_quotes_runtime Off
Just noticed another strange thing...
I haven’t uploaded config.inc.php yet I am getting the message
Checking if manager/includes/config.inc.php is writable: OK!
on the install checklist screen.