如何解决joomla中的数据库配置错误?

时间:2013-04-28 06:43:14

标签: php mysql joomla joomla2.5

我在配置数据库时在xampp中安装了joomla,它显示以下错误

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 'USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9' at line 11 SQL=CREATE TABLE IF NOT EXISTS `d3vm0_usergroups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', `parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Adjacency List Reference Id', `lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.', `rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.', `title` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `idx_usergroup_parent_title_lookup` (`parent_id`,`title`), KEY `idx_usergroup_title_lookup` (`title`), KEY `idx_usergroup_adjacency_lookup` (`parent_id`), KEY `idx_usergroup_nested_set_lookup` (`lft`,`rgt`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9

Table 'testone.d3vm0_usergroups' doesn't exist SQL=INSERT INTO `d3vm0_usergroups` (`id`, `parent_id`, `lft`, `rgt`, `title`) VALUES (1, 0, 1, 18, 'Public'), (2, 1, 8, 15, 'Registered'), (3, 2, 9, 14, 'Author'), (4, 3, 10, 13, 'Editor'), (5, 4, 11, 12, 'Publisher'), (6, 1, 4, 7, 'Manager'), (7, 6, 5, 6, 'Administrator'), (8, 1, 16, 17, 'Super Users'), (9, 1, 2, 3, 'Guest')

2 个答案:

答案 0 :(得分:0)

您的CREATE TABLE失败,因此无法执行INSERT语句,因为INSERT没有表格。

CREATE TABLEUSING BTREE语句中出错。我不确定,但也许这有效。 CREATE...(lft,rgt) USING BTREE (lft,rgt))... 此外,您无法插入自动增量列

答案 1 :(得分:0)

由于Mysql的版本不兼容而导致出现此问题

要解决此问题,请按照以下步骤操作: -

转到:C:\ xampp \ htdocs \ joomla32 \ installation \ sql \ mysql 或者你安装xampp的地方

从joomla.sql文件中删除“USING BTREE”并保存。

这对我有用。

希望这会帮助你。