{"id":570,"date":"2013-02-14T14:41:24","date_gmt":"2013-02-14T14:41:24","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/02\/14\/finding-db-name\/"},"modified":"2021-08-16T23:21:32","modified_gmt":"2021-08-17T03:21:32","slug":"finding-db-name","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/","title":{"rendered":"Finding the database name for your Zen Cart website"},"content":{"rendered":"<p>Zen Cart&#8217;s administrative area gives you the ability to handle most features and changes you will need to make on a regular basis. However, you may, at some point, need to work with the database directly, normally while using a tool like phpMyAdmin. This may be due to a particular database change that needs to be made that cannot be done via the admin panel, or perhaps you need to troubleshoot an issue. Regardless, knowing the right database name is important and guessing can be dangerous if you have more than a couple of databases in your account. Below are the steps to find the exact database name for your Zen Cart application.<\/p>\n<h2>How to locate the database name for your Zen Cart.<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/edu\/drupal\/set-activation-email\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your cPanel<\/a> dashboard.<\/li>\n<li>Now that you are in the main cPanel area, <a href=\"\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">enter the File Manager<\/a>.<\/li>\n<li>From the <em>File Manager<\/em>, find and enter the root folder for your Zen Cart store. In our example, the folder is named <em>zcstore<\/em> and is under the <em>public_html<\/em> root folder (<em>public_html\/zcstore<\/em>). If you are using an addon domain, look for the domain name under the public_html folder. The files for an addon domain named example.com would be under the <em>public_html\/example.com <\/em>folder<\/li>\n<li>Under the root folder for your <em>Zen Cart<\/em> store, locate and click on the <strong>includes <\/strong>folder. Using our main domain as an example, the file path would be <em>public_html\/includes<\/em>.<\/li>\n<li>Once in in the <em>includes <\/em>folder, you will need to open the <strong>configure.php<\/strong> file for viewing. To open the file, highlight it and click on the <strong>Edit<\/strong> icon located in the toolbar across the top.<\/li>\n<li>From the editor, you will see the text for the file. There is quite a bit so you may want to use the search feature or scroll down to find the line with the DB_DATABASE variable. Using the line of code below as an example, the second parameter is the full database name. The name is prefixed by your cPanel username (userna5) and the database name is the last portion (_zen123).\n<p><code>define('DB_DATABASE', 'userna5_zen123');<\/code><\/li>\n<li>Write the database name down for later reference. You can now quickly locate your database when using tools like phpMyAdmin regardless of how many databases your hosting account is using.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Zen Cart&#8217;s administrative area gives you the ability to handle most features and changes you will need to make on a regular basis. However, you may, at some point, need to work with the database directly, normally while using a tool like phpMyAdmin. This may be due to a particular database change that needs to<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\"> Read More ><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288,4305],"tags":[],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-website","category-databases"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Finding the database name for your Zen Cart website | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.\" \/>\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.inmotionhosting.com\/support\/website\/finding-db-name\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Finding the database name for your Zen Cart website | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-14T14:41:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:21:32+00:00\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\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.inmotionhosting.com\/support\/website\/finding-db-name\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"Finding the database name for your Zen Cart website\",\"datePublished\":\"2013-02-14T14:41:24+00:00\",\"dateModified\":\"2021-08-17T03:21:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\"},\"wordCount\":389,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\",\"Working with Databases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\",\"name\":\"Finding the database name for your Zen Cart website | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-02-14T14:41:24+00:00\",\"dateModified\":\"2021-08-17T03:21:32+00:00\",\"description\":\"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Finding the database name for your Zen Cart website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Finding the database name for your Zen Cart website | InMotion Hosting","description":"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.","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.inmotionhosting.com\/support\/website\/finding-db-name\/","og_locale":"en_US","og_type":"article","og_title":"Finding the database name for your Zen Cart website | InMotion Hosting","og_description":"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-02-14T14:41:24+00:00","article_modified_time":"2021-08-17T03:21:32+00:00","author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"Finding the database name for your Zen Cart website","datePublished":"2013-02-14T14:41:24+00:00","dateModified":"2021-08-17T03:21:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/"},"wordCount":389,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website","Working with Databases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/","name":"Finding the database name for your Zen Cart website | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-02-14T14:41:24+00:00","dateModified":"2021-08-17T03:21:32+00:00","description":"If you are looking for the database name your Zen Cart application is using, you can find out how to locate it with this short tutorial.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/finding-db-name\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Finding the database name for your Zen Cart website"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":84956,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/570\/revisions\/84956"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}