magento修复数据表存储引擎为InnoDB
来源:互联网 发布:软件项目的软件schdule 编辑:程序博客网 时间:2024/05/18 00:24
header('Content-Type:text/html;charset-UTF-8');require_once 'app/Mage.php';Mage::app('default');$read = Mage::getSingleton('core/resource')->getConnection('core_read');$write = Mage::getSingleton('core/resource')->getConnection('core_write');$nochange = array('cataloginventory_stock_status_tmp','catalog_category_anc_categs_index_tmp','catalog_category_anc_products_index_tmp','catalog_category_product_index_enbl_tmp','catalog_category_product_index_tmp','catalog_product_index_eav_decimal_tmp','catalog_product_index_eav_tmp','catalog_product_index_price_bundle_opt_tmp','catalog_product_index_price_bundle_sel_tmp','catalog_product_index_price_bundle_tmp','catalog_product_index_price_cfg_opt_agr_tmp','catalog_product_index_price_cfg_opt_tmp','catalog_product_index_price_downlod_tmp','catalog_product_index_price_final_tmp','catalog_product_index_price_opt_agr_tmp','catalog_product_index_price_opt_tmp','catalog_product_index_price_tmp','catalogsearch_fulltext','importexport_importdata','sendfriend_log');$sql = "SHOW TABLES FROM `tablename`";$rows = $read->fetchAll($sql);foreach($rows as $row){if(!in_array($row['Tables_in_tablename'],$nochange)){echo "ALTER TABLE `" . $row['Tables_in_voguerue'] . "` ENGINE = INNODB" . "<br />";$write->query("ALTER TABLE `" . $row['Tables_in_voguerue'] . "` ENGINE = INNODB");}}
0 0
- magento修复数据表存储引擎为InnoDB
- MyISAM存储引擎数据表修复
- magento -- mysql采用innodb存储引擎
- innodb 引擎表修复二
- 数据表存储引擎
- 15.2. InnoDB存储引擎
- InnoDB数据库存储引擎
- InnoDB存储引擎Log
- InnoDB 存储引擎
- InnoDB存储引擎
- InnoDB存储引擎
- innodb 存储引擎
- MySQL InnoDB存储引擎
- MySQL存储引擎--InnoDB
- 优化Innodb存储引擎
- innodb存储引擎
- innodb存储引擎
- InnoDB存储引擎简述
- Mac
- java调用c入门介绍.
- 《黑马程序员》银行业务调度系统--学习笔记
- 使用JMX监控Tomcat(监控应用服务器系列文章)
- 第十五章预习
- magento修复数据表存储引擎为InnoDB
- hadop hdfs FileSystem
- opencv imread读取alpha通道
- 让织梦CMS问答系统、留言本、会员空间导航支持标签调用
- oracle 中 alter system set|reset
- avi 格式(English)
- ORACLE数据库学习之数据库的优化
- 跟我一起写 Makefile(三) 转自http://blog.csdn.net/haoel/article/details/2888
- LayoutInflater作用及使用