我尝试使用此规范在我的WAMP服务器上安装modx 1.0.5
这是我得到的错误
Install results
Setup will now attempt to setup the database:
Creating connection to the database: OK!
Selecting database `modx105`: OK!
Checking table prefix `modx_`: OK!
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; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM COMMENT='Contains data about active users.'' at line 9 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 COMMENT='Contains data about active users.'.
我没有把所有信息都写错,因为它太长了。
对我来说似乎很奇怪,因为我的朋友在XAMPP服务器上安装它并且安装正确运行。我的WAMP服务器可能有一些配置导致安装失败吗?
由于我的WAMP配置没有太大变化,除了在Apache中启用rewriteEngine并添加PHP 5.2.11版本
提前谢谢
答案 0 :(得分:2)
通过快速搜索,TYPE
不再受支持,并且已经很长时间没有了。它应该是ENGINE=MyISAM
http://dev.mysql.com/doc/refman/5.5/en/show-create-table.html
为什么这是安装程序的一部分还有待确定。
我提交了一个错误#4156
您可以在此期间尝试此解决方法 - http://modxcms.com/forums/index.php?topic=60964.new;topicseen#new