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

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
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值