我试图使用softaculous安装Magento 1.7.0.2版本,但它给出了以下错误:
The following errors were found :
Could not make the query numbered : 36
MySQL Error No : 1059
MySQL Error : Identifier name 'UNQ_djfssd_CATRULE_PRD_PRICE_RULE_DATE_WS_ID_CSTR_GROUP_ID_PRD_ID' is too long
我该如何纠正?
该错误告诉您该标识符太长:
以下是标识符的最大大小(从这里开始:
+----------------------------------+-------------------------------------+
| Identifier | Maximum Length (characters) |
+----------------------------------+-------------------------------------+
| Database | 64 |
| Table | 64 |
| Column | 64 |
| Index | 64 |
| Constraint | 64 |
| Stored Procedure or Function | 64 |
| Trigger | 64 |
| View | 64 |
| Event | 64 |
| Tablespace | 64 |
| Server | 64 |
| Log File Group | 64 |
| Alias | 256 (see exception following table) |
| Compound Statement Label | 16 |
+----------------------------------+-------------------------------------+
该标识符有65个字符。
我不确定这在magento中意味着什么,但把它作为标识符看起来很奇怪。
我在这里大胆猜测,这与在Softaculous中安装更高版本的Magento的问题相同,并重复我对"Magento安装-标识符名称太长"主题的回答:
答案很晚,但如果其他人得到了这个,在Softaculous Advanced设置中安装时,检查表前缀的长度,你可能会发现Softaculus做了一些长得像"fhfhgsfdg_"的事情。将其更改为仅四个字符,即"fhfh_",您可能会发现它有效!
在最初的问题中,前缀"djfssd_"是问题所在,使其成为"djfs_"可能会解决问题。