magento 12 配置安装教程

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

准备一:

下载址:

1 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

如图的第一和第三项:

 

准备二:

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

测试可以正常启动,

 

步骤一:

导入示例数据库,

步骤二:

根据提示安装网站

 

步骤三,

出现的问题及故障排除

 1 2015-05-22 11:01:11 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.
 2 2015-05-22 11:01:11 e10 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
 3 2015-05-22 11:01:01 5298 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.
 4 2015-05-22 11:01:01 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
 5 2015-05-22 11:01:01 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
 6 2015-05-22 11:01:01 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
 7 2015-05-22 11:01:00 5298 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.
 8 2015-05-22 11:01:00 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
 9 2015-05-22 11:01:00 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
10 2015-05-22 11:00:59 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.
11 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
12 2015-05-22 11:00:59 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.
13 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
14 2015-05-22 11:00:59 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.
15 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
16 2015-05-22 11:00:59 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.
17 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
18 2015-05-22 11:00:59 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.
19 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
20 2015-05-22 11:00:59 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.
21 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
22 2015-05-22 11:00:59 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.
23 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
24 2015-05-22 11:00:59 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.
25 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
26 2015-05-22 11:00:59 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.
27 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
28 2015-05-22 11:00:59 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.
29 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
30 2015-05-22 11:00:59 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.
31 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
32 2015-05-22 11:00:59 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.
33 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
34 2015-05-22 11:00:59 5298 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
35 2015-05-22 11:00:59 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.
36 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
37 2015-05-22 11:00:59 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.
38 2015-05-22 11:00:59 50f4 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
39 2015-05-22 11:00:59 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.
40 2015-05-22 11:00:59 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即可。

纠正方法

1 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;
2 
3  
4 
5 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行:

1 public function supportEngine()
2 {
3     $variables  = $this->_getConnection()
4         ->fetchPairs('SHOW VARIABLES');
5     return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : 
6 
7 true;
8 }


替换后的代码:

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

导入数据库出现的错误:

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

 

1 a:5:{i:0;s:207:"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:1;s:871:"#0 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
2 #1 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(391): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-install', '', '1.11.0.0.1')
3 #2 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(289): Mage_Core_Model_Resource_Setup->_installData('1.11.0.0.1')
4 #3 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\Resource\Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
5 #4 D:\xampps\htdocs\magento12\app\code\core\Mage\Core\Model\App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
6 #5 D:\xampps\htdocs\magento12\app\Mage.php(683): Mage_Core_Model_App->run(Array)
7 #6 D:\xampps\htdocs\magento12\index.php(87): Mage::run('', 'store')
8 #7 {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 测试盒多元化测试

 

转载于:https://www.cnblogs.com/endv/p/4521929.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值