{"id":7273,"date":"2021-08-11T09:01:37","date_gmt":"2021-08-11T09:01:37","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=7273"},"modified":"2021-08-11T09:01:42","modified_gmt":"2021-08-11T09:01:42","slug":"change-database-name-in-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/","title":{"rendered":"How To Change Database Name In Magento 2"},"content":{"rendered":"\n<p>In this post, I will guide you on <strong>How To Change Database Name In Magento 2<\/strong>. The env file contains information about the database like dbname, username, and password, and you can change them to work with the MySQL server.<\/p>\n\n\n\n<p>This should be done when you move host or change a new database. Here&#8217;s how you can get the job done quickly through our guide below:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps To Change Database Name In Magento 2<\/h2>\n\n\n\n<p>1. &nbsp;First, you need to connect to your server via SSH as the root user by command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nssh root@&lt;your-ip-address&gt; -p &lt;your-port-number&gt;\n<\/pre><\/div>\n\n\n<p>2. Go to Magento 2 root folder.<\/p>\n\n\n\n<p>3. Open env.php file with the below given path.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napp\/etc\/env.php\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"598\" data-attachment-id=\"7274\" data-permalink=\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/open-env-php-file\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?fit=1152%2C861&amp;ssl=1\" data-orig-size=\"1152,861\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Open-env.php-file\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?fit=300%2C224&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?fit=800%2C598&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?resize=800%2C598&#038;ssl=1\" alt=\"Open env.php file\" class=\"wp-image-7274\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?w=1152&amp;ssl=1 1152w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?resize=1024%2C765&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/Open-env.php-file.png?resize=768%2C574&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>4. Navigate to the db and check the &#8220;dbname&#8221; property. You can see it in env.php file like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n'db' =&gt; &#x5B;\n        'table_prefix' =&gt; '',\n        'connection' =&gt; &#x5B;\n            'default' =&gt; &#x5B;\n                'host' =&gt; 'localhost',\n                'dbname' =&gt; 'magento2',\n                'username' =&gt; 'root',\n                'password' =&gt; '',\n                'model' =&gt; 'mysql4',\n                'engine' =&gt; 'innodb',\n                'initStatements' =&gt; 'SET NAMES utf8;',\n                'active' =&gt; '1',\n                'driver_options' =&gt; &#x5B;\n                    1014 =&gt; false\n                ]\n            ]\n        ]\n    ],\n<\/pre><\/div>\n\n\n<p>5. Here, the database name is &#8220;magento2&#8221;. Now you can change the name of the database to the name you want to set.<\/p>\n\n\n\n<p>For example the database name you want to change is &#8220;magento242&#8221;, it will look like below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n'dbname' =&gt; 'magento242',\n<\/pre><\/div>\n\n\n<p>So you have done it successfully!<\/p>\n\n\n\n<p>This is the end of the&nbsp;post.<\/p>\n\n\n\n<p>Follow us for the more helpful posts!<\/p>\n\n\n\n<p>We hope this is a useful post for you\u00a0on\u00a0<strong><a href=\"https:\/\/www.magetop.com\/blog\/change-mysql-password-policy-level\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Change MySQL Password Policy Level<\/a><\/strong>.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname, username, and password, and you can change them to work with the MySQL server.<\/p>\n","protected":false},"author":106,"featured_media":7277,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[1858,1859,1860,107],"class_list":["post-7273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-change-database-name","tag-change-database-name-in-magento-2","tag-how-to-change-database-name-in-magento-2","tag-magento-2-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Change Database Name In Magento 2 - Magetop Blog<\/title>\n<meta name=\"description\" content=\"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Change Database Name In Magento 2 - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-11T09:01:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-11T09:01:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1063\" \/>\n\t<meta property=\"og:image:height\" content=\"631\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"How To Change Database Name In Magento 2\",\"datePublished\":\"2021-08-11T09:01:37+00:00\",\"dateModified\":\"2021-08-11T09:01:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\"},\"wordCount\":209,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1\",\"keywords\":[\"Change Database Name\",\"Change Database Name In Magento 2\",\"How To Change Database Name In Magento 2\",\"magento 2 tutorials\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\",\"name\":\"How To Change Database Name In Magento 2 - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1\",\"datePublished\":\"2021-08-11T09:01:37+00:00\",\"dateModified\":\"2021-08-11T09:01:42+00:00\",\"description\":\"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1\",\"width\":1063,\"height\":631,\"caption\":\"How To Change Database Name In Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Change Database Name In Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Change Database Name In Magento 2 - Magetop Blog","description":"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How To Change Database Name In Magento 2 - Magetop Blog","og_description":"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname","og_url":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2021-08-11T09:01:37+00:00","article_modified_time":"2021-08-11T09:01:42+00:00","og_image":[{"width":1063,"height":631,"url":"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"How To Change Database Name In Magento 2","datePublished":"2021-08-11T09:01:37+00:00","dateModified":"2021-08-11T09:01:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/"},"wordCount":209,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","keywords":["Change Database Name","Change Database Name In Magento 2","How To Change Database Name In Magento 2","magento 2 tutorials"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/","name":"How To Change Database Name In Magento 2 - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","datePublished":"2021-08-11T09:01:37+00:00","dateModified":"2021-08-11T09:01:42+00:00","description":"In this post, I will guide you on How To Change Database Name In Magento 2. The env file contains information about the database like dbname","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","width":1063,"height":631,"caption":"How To Change Database Name In Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/change-database-name-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Change Database Name In Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Change-Database-Name-In-Magento-2.png?fit=1063%2C631&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-1Tj","jetpack-related-posts":[{"id":8373,"url":"https:\/\/www.magetop.com\/blog\/how-to-transfer-magento-2-site-from-localhost-to-server\/","url_meta":{"origin":7273,"position":0},"title":"How to Transfer Magento 2 Site from Localhost to Server?","author":"Adam Roger","date":"March 30, 2023","format":false,"excerpt":"In this article, we will show you how to transfer Magento 2 Site from Localhost to Server.","rel":"","context":"In &quot;Magetop Guest Post&quot;","block_context":{"text":"Magetop Guest Post","link":"https:\/\/www.magetop.com\/blog\/welcome-to-our-guest-post\/"},"img":{"alt_text":"How to Transfer Magento 2 Site from Localhost to Server","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/How-to-Transfer-Magento-2-Site-from-Localhost-to-Server.png?fit=850%2C450&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/How-to-Transfer-Magento-2-Site-from-Localhost-to-Server.png?fit=850%2C450&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/How-to-Transfer-Magento-2-Site-from-Localhost-to-Server.png?fit=850%2C450&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/How-to-Transfer-Magento-2-Site-from-Localhost-to-Server.png?fit=850%2C450&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5605,"url":"https:\/\/www.magetop.com\/blog\/import-and-export-database-in-mysql-or-mariadb\/","url_meta":{"origin":7273,"position":1},"title":"How To Import And Export Database In MySQL Or MariaDB","author":"Aaron LX","date":"June 24, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Import And Export Database In MySQL Or MariaDB. Use data dumps to back up and restore your information.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Import And Export Database In MySQL Or MariaDB","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/How-To-Import-And-Export-Database-In-MySQL-Or-MariaDB.png?fit=1200%2C711&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/How-To-Import-And-Export-Database-In-MySQL-Or-MariaDB.png?fit=1200%2C711&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/How-To-Import-And-Export-Database-In-MySQL-Or-MariaDB.png?fit=1200%2C711&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/How-To-Import-And-Export-Database-In-MySQL-Or-MariaDB.png?fit=1200%2C711&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/How-To-Import-And-Export-Database-In-MySQL-Or-MariaDB.png?fit=1200%2C711&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5696,"url":"https:\/\/www.magetop.com\/blog\/display-magento-2-module-list\/","url_meta":{"origin":7273,"position":2},"title":"How To Display Magento 2 Module List","author":"Aaron LX","date":"May 17, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Display Magento 2 Module List. Display a list and check the status of modules in your Magento 2 store.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Display Magento 2 Module List","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Display-Magento-2-Module-List.png?fit=1110%2C659&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":7291,"url":"https:\/\/www.magetop.com\/blog\/enable-or-disable-maintenance-mode-in-magento-2\/","url_meta":{"origin":7273,"position":3},"title":"How To Enable Or Disable Maintenance Mode In Magento 2","author":"Aaron LX","date":"August 12, 2021","format":false,"excerpt":"In this post, I will guide you on How To Enable Or Disable Maintenance Mode In Magento 2. Use maintenance mode to upgrade or reconfigure your site.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Enable Or Disable Maintenance Mode In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/08\/How-To-Enable-Or-Disable-Maintenance-Mode-In-Magento-2.png?fit=1200%2C710&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10738,"url":"https:\/\/www.magetop.com\/blog\/magento-2-and-redis-best-practices-for-caching-and-performance-optimization\/","url_meta":{"origin":7273,"position":4},"title":"Magento 2 and Redis: Best Practices for Caching and Performance Optimization","author":"Aaron LX","date":"October 2, 2025","format":false,"excerpt":"Magento 2 Redis best practices are essential for Magento 2 stores to achieve faster page loads and smoother customer experiences. By following proven Redis configuration and caching strategies, merchants can reduce database load, improve session reliability, and boost overall performance. What is Redis in Magento 2? Redis is an open-source\u2026","rel":"","context":"In &quot;Magento 2 Knowledge Base&quot;","block_context":{"text":"Magento 2 Knowledge Base","link":"https:\/\/www.magetop.com\/blog\/magento-2-knowledge-base\/"},"img":{"alt_text":"Magento 2 and Redis Best Practices for Caching and Performance Optimization","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/Magento-2-and-Redis-Best-Practices-for-Caching-and-Performance-Optimization.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/Magento-2-and-Redis-Best-Practices-for-Caching-and-Performance-Optimization.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/Magento-2-and-Redis-Best-Practices-for-Caching-and-Performance-Optimization.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/Magento-2-and-Redis-Best-Practices-for-Caching-and-Performance-Optimization.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/Magento-2-and-Redis-Best-Practices-for-Caching-and-Performance-Optimization.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1640,"url":"https:\/\/www.magetop.com\/blog\/how-to-use-model-in-magento-2\/","url_meta":{"origin":7273,"position":5},"title":"How To Use Model In Magento 2","author":"Aaron LX","date":"April 1, 2020","format":false,"excerpt":"In this tutorial, we will learn about How To Use Model in Magento 2. This is a basic tutorial followed by How To Create Database Table in Magento 2. You should see the previous article to understand this lesson.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 How To Use Model","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Model.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Model.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Model.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Model.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/7273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=7273"}],"version-history":[{"count":2,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/7273\/revisions"}],"predecessor-version":[{"id":7278,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/7273\/revisions\/7278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/7277"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=7273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=7273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=7273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}