首页 技术 正文
技术 2022年11月7日
0 收藏 797 点赞 719 浏览 10478 个字

Magento (麦进斗) 是一套专业开源的电子商务系统。Magento设计得非常灵活,具有模块化架构体系和丰富的功能。易于与第三方应用系统无缝集成。其面向企业级应用,可处理各方面的需求,以及建设一个多种用途和适用面的电子商务网站。 包括购物、航运、产品评论等等,充分利用开源的特性,提供代码库的开发,非常规范的标准,易于与第三方应用系统无缝集成。

准备一:

下载址:

 https://www.magentocommerce.com/products/downloads/magento/

下载内容:

1、安装包

Full Release ver 1.9.1.1  – Added May 1, 2015

2、示例数据库

Sample Data ver 1.9.1.0  – Added Dec 3, 2014

如图的第一和第三项:

magento 12 配置安装教程

准备二:

安装 xampps 1.9.0      ap+mysql环境一键安装包

测试可以正常启动,

步骤一:

导入示例数据库,

步骤二:

根据提示安装网站

步骤三,

出现的问题及故障排除

 -- :: e10 InnoDB: Recalculation of persistent statistics requested for table "magento"."catalog_product_option_type_title" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: e10 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Fetch of persistent statistics requested for table "magento"."catalogrule_website" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Fetch of persistent statistics requested for table "magento"."catalogrule_product_price" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_form_fieldset" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_form_element" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_varchar" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_type" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_text" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_store" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_int" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_decimal" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_datetime" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity_attribute" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_entity" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_attribute_set" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_attribute_option_value" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_attribute_option" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
-- :: 50f4 InnoDB: Recalculation of persistent statistics requested for table "magento"."eav_attribute_label" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
-- :: 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

数据表错误代码

由于是将低版本的MySQL datadir目录直接拷贝到5.6.21-enterprise-commercial-advanced-log的,低版本的mysql这个schema中并没有innodb_table_stats,innodb_index_stats这些表。所以登录到mysql这个schema中手工创建这些表后,重启mysql即可。

纠正方法

 CREATE TABLE `innodb_table_stats` (    `database_name` varchar(64) COLLATE utf8_bin NOT NULL,    `table_name` varchar(64) COLLATE utf8_bin NOT NULL,    `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,    `n_rows` bigint(20) unsigned NOT NULL,    `clustered_index_size` bigint(20) unsigned NOT NULL,    `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,    PRIMARY KEY (`database_name`,`table_name`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0; CREATE TABLE `innodb_index_stats` (    `database_name` varchar(64) COLLATE utf8_bin NOT NULL,    `table_name` varchar(64) COLLATE utf8_bin NOT NULL,    `index_name` varchar(64) COLLATE utf8_bin NOT NULL,    `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,    `stat_name` varchar(64) COLLATE utf8_bin NOT NULL,    `stat_value` bigint(20) unsigned NOT NULL,    `sample_size` bigint(20) unsigned DEFAULT NULL,    `stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,    PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;

创建表 innodb_table_stats

Magento安装时数据库不支持InnoDB存储引擎问题的解决

找到文件app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php的第59行:

 public function supportEngine()
{
$variables = $this->_getConnection()
->fetchPairs('SHOW VARIABLES');
return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
}

替换后的代码:

 public function supportEngine()
{
$variables = $this->_getConnection()
->fetchPairs('SHOW ENGINES');
return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
}

导入数据库出现的错误:

Fatal error: Maximum execution time of 300 seconds exceeded in D:\xampps\phpmyadmin\libraries\dbi\DBIMysqli.class.php on line 258

【错误原因】:mysql_query执行超时.

【解决办法】:修改php.ini中的 max_execution_time的值,默认为300,单位是秒,例如:

max_execution_time = 300   (如果前面有 “;” 号,则去掉)

将其改为:

max_execution_time = 3000

最后,重新启动服务管理器即可

如果重新安装:

删除这个文件

D:\xampps\htdocs\magento12\app\etc\local.xml

说明出现了错误,请根据”Error record
number:xxxxxxxxx”的数字在网站根目录下的var/report中找到对应的报告并打开,里面有具体的问题。

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 573621623

D:\xampps\htdocs\magento12\var\report

 a::{i:;s::"Error in file: "D:\xampps\htdocs\magento12\app\code\core\Enterprise\WebsiteRestriction\data\enterprise_websiterestriction_setup\data-install-1.11.0.0.php" - A page URL key for specified store already exists.";i:;s::"#0 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
# D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-install', '', '1.11.0.0.1')
# D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(): Mage_Core_Model_Resource_Setup->_installData('1.11.0.0.1')
# D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(): Mage_Core_Model_Resource_Setup->applyDataUpdates()
# D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\App.php(): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
# D:\xampps\htdocs\magento12\app\Mage.php(): Mage_Core_Model_App->run(Array)
# D:\xampps\htdocs\magento12\index.php(): Mage::run('', 'store')
# {main}";s:3:"url";s:46:"/magento12/index.php/install/wizard/installDb/";s:11:"script_name";s:20:"/magento12/index.php";s:4:"skin";s:7:"default";}

功能  

1.强大的商品属性组合

Magento强大的商品属性系统能够支持任意商品类型。无论您是销售服装,电器还是家具,Magento都能完美支持商品的所有属性,并且能够灵活的修改和管理。

2.购物车价格规则

Magento的购物车价格规则不同于传统的优惠券功能。完整的逻辑关系处理能够创建出任意的优惠方式,让您在制定促销方案时游刃有余。

3.灵活的模板系统

Magento灵活的模板系统可以让您做到模板一键切换。弹指之间,更改网站所有页面的风格,包括Email营销邮件样式。再也不必为更改页面风格而烦恼。

4.多网店系统

假如您拥有多个品牌,或者多家网店。 Magento的多店系统可以让您配置多个网店,多个域名,但使用统一的管理控制台,节约您管理的时间和成本。

5.完善的插件体系

Magento的插件系统可以灵活的为系统增减功能。您不必修改已有的代码,只需要安装相应功能的插件就能实现。极大的缩减了新增功能的复杂开发成本。在Magento1.3、Magento1.4还有Magento1.5版本之间有很大区别并不是所有的都能兼容。

6.安全加密

电子商务系统的数据是企业的商业机密。 Magento支持SSL加密传输前台和后台数据并且支持后台权限的分级控制,确保您的数据万无一失。

7.企业应用集成

Magento的WebService开放API系统能够和您企业的其他系统进行无缝集成。不论是ERP还是CRM,Magento都能保证数据的同步和准确,使您企业应用的效率最大化。   特色

1.容易整合

Magento 让整合第三方厂商解决方案变得更加容易,透过Magento 建立客制化网站可以节省您很多的时间与资源。

2.新颖的功能

像是产品标签、多送货地址或产品比较系统等功能,您不需要支付额外的费用来取得,在现成的Magento系统中,您可以发现更多。

3.专业与社群支援

不像是其他的开放原始码解决方案,Magento 提供专业、可信赖的支援,您也可以从热情的社群中取得协助,国内也有Magento的爱好者创建中文社区。

4.完整的扩充性

无论网站经过了一夜或是一年的成长,您不需要担心选择的方案无法应付,Magento 提供了完整的扩充性

功能

市场营销工具 *私人(俱乐部)销售,包括活动,邀请,分类访问权限

*灵活的优惠券(价格规则),可限制店铺、客户组、时间段、商品和分类。例如,百分比折扣|固定金额折扣|免运费|买一送一|买一件,第二件可以获得百分比或固定金额的折扣|购买指定商品可以全单免运费|购买指定商品可以获得百分比折扣|购买指定商品可以获得固定金额的折扣

*可设置按百分比或固定金额的目录促销价格适用于某些店铺、分类和商品

*免运费选项

*按购买数量分层定制价格折扣

*捆绑商品

*特定客户组价格和特定客户组分层价格

*用于促销的目标页面工具

*搜索引擎友好的URL

*URL 重写

*浏览过的商品

*把多个商品加入比较

*新商品促销工具

*商品页面的推荐销售

*购物车里的交叉销售

*发送给好友可设为对所有访客或仅对注册用户开放

*通过电子邮件或RSS 发送收藏夹给好友

*新商品、新促销和新标签的RSS 源

*自动生成网站地图

*Google 网站地图

*投票调查

*新闻电邮管理

分析与报告 *登录进行管理员操作

*整合Google 分析

*报告概览的管理面板

*销售报告

*新订单的RSS 源

*税费报告

*被放弃的购物车报告

*访问最多的商品报告

*订购最多的商品报告

*低库存报告

*搜索关键词报告

*商品评论报告

*新评论的RSS 源

*标签报告

*新标签的RSS 源

*优惠券使用报告

*开具发票的销售总额

*销售退款总额

*根据订单总金额和订单数目来排行的最

*佳客户报告

搜索引擎优化 *100%搜索引擎友好

*Google 网站地图

*URL 重写以全面掌控URL

*商品与分类的元数据

*自动生成展示在站点的网站地图

*自动生成热门搜索关键词页面

站点管理 内容拆分与合并。支持按需和按计划来合并和内容回滚。

多个网站和店铺统一后台管理,可以根

据需要共享资料

多语言选择

支持本地化

支持多种货币

用户角色权限的管理系统

Web 服务API 使得Magento 和第三方软件之间更容易整合

灵活的税率管理适用于美国和国际市场

使用模版100% 定制设计

客户群

一键式升级

静态页面内容管理系统

整合Google 网站优化工具进行A/B 测试盒多元化测试

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,088
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,564
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,412
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,185
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,822
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905