关闭

Joomla install SQL file (DB function failed with error number 1064)

标签: functionsqlfiletabledatabaseinsert
1084人阅读 评论(1) 收藏 举报
分类:

Starting to learn Joomla recently, and here is a self-tutorial.

 

I tried the "Hello world" component. at first, it runs ok, but after i tried to add on the database, it always shows error:

SQL error... DB function failed with error number 1064.

(here is the tutorial link: http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_3_-_Using_the_Database)

 

At first, I could not find out where is the error because I had compare with my install.sql with the example word by word. they are exactly the same.

 

Here is my own install.sql:

 

 

this is the example install.sql:

 

 

 

but finally I realized where is the error:

the first line after "DROP TABLE IF EXISTS", the single quotation mark.

it must be `#__hello`, cannot be '#__hello '.

 

it took me almost 2 hours to find it out this 'error', hope it will help.

Good luck~~

 

btw, here is another reference link, maybe useful:

http://forum.joomla.org/viewtopic.php?p=1267578

0
0

猜你在找
【直播】机器学习&数据挖掘7周实训--韦玮
【套餐】系统集成项目管理工程师顺利通关--徐朋
【直播】3小时掌握Docker最佳实战-徐西宁
【套餐】机器学习系列套餐(算法+实战)--唐宇迪
【直播】计算机视觉原理及实战--屈教授
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之矩阵--黄博士
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之凸优化--马博士
【套餐】Javascript 设计模式实战--曾亮
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:32091次
    • 积分:588
    • 等级:
    • 排名:千里之外
    • 原创:25篇
    • 转载:4篇
    • 译文:0篇
    • 评论:3条
    文章分类
    最新评论