您的位置:首页 > 数据库 > MySQL

Joomla安装过程中MySQL出现错误

2014-09-19 21:13 302 查看

Joomla安装过程中MySQL出现错误

2011-01-04 15:09lordlu|分类:数据库DB|
浏览1182次
数据库等信息都填写完成开始安装时,出现如下错误提示:

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 AUTO_INCREMENT=12' at line 29 SQL=CREATE TABLE `jo_banner` ( `bid` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) NOT NULL DEFAULT '0', `type` varchar(30) NOT NULL DEFAULT 'banner', `name` varchar(255) NOT NULL DEFAULT '', `alias` varchar(255) NOT NULL DEFAULT '', `imptotal` int(11) NOT NULL DEFAULT '0', `impmade` int(11) NOT NULL DEFAULT '0', `clicks` int(11) NOT NULL DEFAULT '0', `imageurl` varchar(100) NOT NULL DEFAULT '', `clickurl` varchar(200) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `showBanner` tinyint(1) NOT NULL DEFAULT '0', `checked_out` tinyint(1) NOT NULL DEFAULT '0', `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `editor` varchar(50) DEFAULT NULL, `custombannercode` text, `catid` int(10) unsigned NOT NULL DEFAULT '0', `description` text NOT NULL, `sticky` tinyint(1) unsigned NOT NULL DEFAULT '0', `ordering` int(11) NOT NULL DEFAULT '0', `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `tags` text NOT NULL, `params` text NOT NULL, PRIMARY KEY (`bid`), KEY `viewbanner` (`showBanner`), KEY `idx_banner_catid` (`catid`) ) TYPE=MyISAM AUTO_INCREMENT=12

希望有Joomla和MySQL经验的朋友帮忙解答一下,谢谢!

安装环境是Windows 7 Ultimate 64bit,MySQL版本为:mysql-5.5.8-winx64,Joomla版本:1.5


分享到:

2011-01-04 18:18提问者采纳

这个脚本在 mysql 5.0 的版本下执行没有问题 。

由于你的版本是 5.5, mysql 的特性修改了。

所以出现错误提示。

MySQL 5.5.x has depreciated the table_type_option construct of TYPE and has replaced it with ” ENGINE ”

MySQL 5.5.x已经将TYPE这个table_type_option以ENGINE替代.

进入Joomla的安装路径, 比如 /data0/htdocs/joomla/installation/sql/mysql

找到joomla.sql这个文件, 使用文本编辑器打开, 将所有的TYPE=MyISAM替换为ENGINE=MyISAM, 然后在joomla安装页面继续就可以了。

主要是mysql 数据库的调整所致。

提问者评价
谢谢!不过安装完成后访问Joomla首页没有反应(一直显示等待localhost相应),不知道是什么原因呢?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐