我打算使用MySQL集群安装Magento 2.0安装o针对高可用性数据库的MySQL Galera集群。其中一个限制就是每张桌子都应该有一个PK。令我惊讶的是,并不是Magento 2.0社区版的每个表都有一个PK。他们中的大多数人有一个,但有一些没有。将Magento 2.0安装到MySQL集群
是否有人通过高度可用的集群数据库实现了Magento安装?你是怎么做到的?我正在考虑将自动增量PK添加到没有PK的表中,但这可能意味着未来Magento升级时会遇到架构更改的问题。
你会怎么做?
编辑:这是这将是麻烦的表:
+--------------------------------------------------------------+--------+------+----------+--------+
| tbl | engine | nopk | ftidx | gisidx |
+--------------------------------------------------------------+--------+------+----------+--------+
| magento.cataloginventory_stock_status_tmp | MEMORY | | | |
| magento.catalogsearch_fulltext_scope1 | InnoDB | | FULLTEXT | |
| magento.catalog_category_product_index_tmp | MEMORY | NOPK | | |
| magento.catalog_product_entity_media_gallery_value_to_entity | InnoDB | NOPK | | |
| magento.catalog_product_entity_media_gallery_value_video | InnoDB | NOPK | | |
| magento.catalog_product_index_eav_decimal_tmp | MEMORY | | | |
| magento.catalog_product_index_eav_tmp | MEMORY | | | |
| magento.catalog_product_index_price_bundle_opt_tmp | MEMORY | | | |
| magento.catalog_product_index_price_bundle_sel_tmp | MEMORY | | | |
| magento.catalog_product_index_price_bundle_tmp | MEMORY | | | |
| magento.catalog_product_index_price_cfg_opt_agr_tmp | MEMORY | | | |
| magento.catalog_product_index_price_cfg_opt_tmp | MEMORY | | | |
| magento.catalog_product_index_price_downlod_tmp | MEMORY | | | |
| magento.catalog_product_index_price_final_tmp | MEMORY | | | |
| magento.catalog_product_index_price_opt_agr_tmp | MEMORY | | | |
| magento.catalog_product_index_price_opt_tmp | MEMORY | | | |
| magento.catalog_product_index_price_tmp | MEMORY | | | |
| magento.catalog_url_rewrite_product_category | InnoDB | NOPK | | |
| magento.cms_block | InnoDB | | FULLTEXT | |
| magento.cms_page | InnoDB | | FULLTEXT | |
| magento.customer_grid_flat | InnoDB | | FULLTEXT | |
| magento.oauth_nonce | InnoDB | NOPK | | |
| magento.sales_creditmemo_grid | InnoDB | | FULLTEXT | |
| magento.sales_invoice_grid | InnoDB | | FULLTEXT | |
| magento.sales_order_grid | InnoDB | | FULLTEXT | |
| magento.sales_shipment_grid | InnoDB | | FULLTEXT | |
| magento.widget_instance_page_layout | InnoDB | NOPK | | |
+--------------------------------------------------------------+--------+------+----------+--------+
你最终使用了什么解决方案? – themanwhoknowstheman