Magento 2.3 introduced a view table which causes issue with import of mysql dump. What's it for?Magento 2.3.1 Base table or view not foundWhich table contains settings for countries available for shippingRetrieve product status query optimization in core magentoMagento Frontend suddenly very slow (Backend fast) issue MySQL relatedMagento 1.9 join table issueMagento 2.3 composer install issueMagento 2.3 product image issueMagento 2.3 upload_max_filesize max at 8M for import featureMagento 2.3 Data Transfer ImportMagento 2.3 Upgrade issueEvent Observer for import with magmi

Why is std::ssize() introduced in C++20?

Are PMR446 walkie-talkies legal in Switzerland?

Reduce size of sum sub/superscript?

How would a developer who mostly fixed bugs for years at a company call out their contributions in their CV?

Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?

What did the 'turbo' button actually do?

Testing using real data of the customer

How to teach an undergraduate course without having taken that course formally before?

Why isn't Tyrion mentioned in 'A song of Ice and Fire'?

ifconfig shows UP while ip link shows DOWN

Is "vegetable base" a common term in English?

What could be my risk mitigation strategies if my client wants to contract UAT?

Navigating a quick return to previous employer

Count all vowels in string

Can a multiclassed Kensei monk/Swashbuckler rogue use an offhand finesse weapon to trigger Sneak Attack, without using a bonus action?

How can I minimize the damage of an unstable nuclear reactor to the surrounding area?

Is there an idiom that means that you are in a very strong negotiation position in a negotiation?

Why is the Eisenstein ideal paper so great?

Are there historical examples of audiences drawn to a work that was "so bad it's good"?

To exponential digit growth and beyond!

Are there guidelines for finding good names for LaTeX 2e packages and control sequences defined in these packages?

How to deceive the MC

Visual Block Mode edit with sequential number

Paired t-test means that the variances of the 2 samples are the same?



Magento 2.3 introduced a view table which causes issue with import of mysql dump. What's it for?


Magento 2.3.1 Base table or view not foundWhich table contains settings for countries available for shippingRetrieve product status query optimization in core magentoMagento Frontend suddenly very slow (Backend fast) issue MySQL relatedMagento 1.9 join table issueMagento 2.3 composer install issueMagento 2.3 product image issueMagento 2.3 upload_max_filesize max at 8M for import featureMagento 2.3 Data Transfer ImportMagento 2.3 Upgrade issueEvent Observer for import with magmi






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















If you mysql dump a magento 2.3 store and try to import it elsewhere you get an issue due the the format of the view import query.



The problem part is this:



CREATE ALGORITHM=UNDEFINED DEFINER=`PUT_YOUR_DATABASE_USER_NAME_HERE`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on(`legacy_stock_status`.`product_id` = `product`.`entity_id`)) ;


You need elevated permissions. The solution is this:




CREATE
OR REPLACE
VIEW `inventory_stock_1` AS select
distinct `legacy_stock_status`.`product_id` AS `product_id`,
`legacy_stock_status`.`website_id` AS `website_id`,
`legacy_stock_status`.`stock_id` AS `stock_id`,
`legacy_stock_status`.`qty` AS `quantity`,
`legacy_stock_status`.`stock_status` AS `is_salable`,
`product`.`sku` AS `sku`
from
( `cataloginventory_stock_status` `legacy_stock_status`
join `catalog_product_entity` `product` on
(( `legacy_stock_status`.`product_id` = `product`.`entity_id` )));


My question is what is this view table used for? And why a view?










share|improve this question






























    0















    If you mysql dump a magento 2.3 store and try to import it elsewhere you get an issue due the the format of the view import query.



    The problem part is this:



    CREATE ALGORITHM=UNDEFINED DEFINER=`PUT_YOUR_DATABASE_USER_NAME_HERE`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on(`legacy_stock_status`.`product_id` = `product`.`entity_id`)) ;


    You need elevated permissions. The solution is this:




    CREATE
    OR REPLACE
    VIEW `inventory_stock_1` AS select
    distinct `legacy_stock_status`.`product_id` AS `product_id`,
    `legacy_stock_status`.`website_id` AS `website_id`,
    `legacy_stock_status`.`stock_id` AS `stock_id`,
    `legacy_stock_status`.`qty` AS `quantity`,
    `legacy_stock_status`.`stock_status` AS `is_salable`,
    `product`.`sku` AS `sku`
    from
    ( `cataloginventory_stock_status` `legacy_stock_status`
    join `catalog_product_entity` `product` on
    (( `legacy_stock_status`.`product_id` = `product`.`entity_id` )));


    My question is what is this view table used for? And why a view?










    share|improve this question


























      0












      0








      0








      If you mysql dump a magento 2.3 store and try to import it elsewhere you get an issue due the the format of the view import query.



      The problem part is this:



      CREATE ALGORITHM=UNDEFINED DEFINER=`PUT_YOUR_DATABASE_USER_NAME_HERE`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on(`legacy_stock_status`.`product_id` = `product`.`entity_id`)) ;


      You need elevated permissions. The solution is this:




      CREATE
      OR REPLACE
      VIEW `inventory_stock_1` AS select
      distinct `legacy_stock_status`.`product_id` AS `product_id`,
      `legacy_stock_status`.`website_id` AS `website_id`,
      `legacy_stock_status`.`stock_id` AS `stock_id`,
      `legacy_stock_status`.`qty` AS `quantity`,
      `legacy_stock_status`.`stock_status` AS `is_salable`,
      `product`.`sku` AS `sku`
      from
      ( `cataloginventory_stock_status` `legacy_stock_status`
      join `catalog_product_entity` `product` on
      (( `legacy_stock_status`.`product_id` = `product`.`entity_id` )));


      My question is what is this view table used for? And why a view?










      share|improve this question
















      If you mysql dump a magento 2.3 store and try to import it elsewhere you get an issue due the the format of the view import query.



      The problem part is this:



      CREATE ALGORITHM=UNDEFINED DEFINER=`PUT_YOUR_DATABASE_USER_NAME_HERE`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on(`legacy_stock_status`.`product_id` = `product`.`entity_id`)) ;


      You need elevated permissions. The solution is this:




      CREATE
      OR REPLACE
      VIEW `inventory_stock_1` AS select
      distinct `legacy_stock_status`.`product_id` AS `product_id`,
      `legacy_stock_status`.`website_id` AS `website_id`,
      `legacy_stock_status`.`stock_id` AS `stock_id`,
      `legacy_stock_status`.`qty` AS `quantity`,
      `legacy_stock_status`.`stock_status` AS `is_salable`,
      `product`.`sku` AS `sku`
      from
      ( `cataloginventory_stock_status` `legacy_stock_status`
      join `catalog_product_entity` `product` on
      (( `legacy_stock_status`.`product_id` = `product`.`entity_id` )));


      My question is what is this view table used for? And why a view?







      database magento2.3 sql






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 16 at 5:36









      Ayaz Ahmed Khan

      12611




      12611










      asked May 15 at 22:42









      Dominic XigenDominic Xigen

      38310




      38310




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274777%2fmagento-2-3-introduced-a-view-table-which-causes-issue-with-import-of-mysql-dump%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274777%2fmagento-2-3-introduced-a-view-table-which-causes-issue-with-import-of-mysql-dump%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form