0

我尝试使用此规范在我的 WAMP 服务器上安装 modx 1.0.5

  1. PHP v5.2.11
  2. MySQL v5.5.8
  3. 操作系统赢 7

这是我得到的错误

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 版本

先感谢您

4

1 回答 1

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

于 2011-03-24T04:16:36.077 回答