简体   繁体   English

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

[英]how to solve database configuration error in joomla?

i have installed joomla in xampp when i configuring database it shows the following error 我在配置数据库时在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')

Your CREATE TABLE failed , so it can not execute INSERT statement, because there is no table to INSERT . 您的CREATE TABLE失败,因此无法执行INSERT语句,因为没有INSERT表。

CREATE TABLE gets an error on USING BTREE statement. CREATE TABLEUSING BTREE语句时出错。 i am not sure but perhaps this works. 我不确定,但是也许可以。 CREATE...(lft,rgt) USING BTREE (lft,rgt))... Also you can not insert into auto-increment column CREATE...(lft,rgt) USING BTREE (lft,rgt))...也不能插入自动增量列

This Issue occur due to incompatible version of Mysql 出现此问题是由于Mysql版本不兼容

To solve this issue follow These steps :- 要解决此问题,请执行以下步骤:

Go to : C:\\xampp\\htdocs\\joomla32\\installation\\sql\\mysql or where you install xampp 转到:C:\\ xampp \\ htdocs \\ joomla32 \\ installation \\ sql \\ mysql或安装xampp的位置

remove "USING BTREE" from joomla.sql file and save. 从joomla.sql文件中删除“使用BTREE”并保存。

This is working for me. 这对我有用。

Hope This will Help You. 希望这会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM