{"id":14531,"date":"2024-10-04T12:53:16","date_gmt":"2024-10-04T12:53:16","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=14531"},"modified":"2024-10-04T13:49:30","modified_gmt":"2024-10-04T13:49:30","password":"","slug":"how-to-create-a-database-in-control-web-panel-cwp","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/","title":{"rendered":"How to create a database in Control Web Panel (CWP)"},"content":{"rendered":"\n<p>Creating a database in <strong>CWP (CentOS Web Panel)<\/strong> is an essential step for hosting applications like WordPress, Joomla, or custom-built PHP apps that require database functionality.<\/p>\n\n\n\n<p>This can be done either from the <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-cwp-main-whm-panel\/\" target=\"_blank\" rel=\"noreferrer noopener\">CWP Admin<\/a><\/strong> panel or <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-cwp-users-cpanel\/\" target=\"_blank\" rel=\"noreferrer noopener\">CWP user&#8217;s cPanel<\/a><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CWP installed<\/strong> on your server.<\/li>\n\n\n\n<li><strong>Root access<\/strong> or a <strong>user account<\/strong> in CWP.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">A. Using the CWP Admin<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 1: Log in to the CWP Admin Panel<\/strong> using <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-cwp-main-whm-panel\/\" target=\"_blank\" rel=\"noreferrer noopener\">these steps<\/a><\/strong><\/h5>\n\n\n\n<p><strong>Step 2: Navigate to MySQL Manager<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once logged in, go to the left-hand side menu.<\/li>\n\n\n\n<li>Under the <strong>SQL Services<\/strong> section, click on <strong>MySQL Manager<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"356\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png\" alt=\"\" class=\"wp-image-14535\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png 895w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129-300x119.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129-768x305.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 3: Create a New Database<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In <strong>MySQL Manager<\/strong>, you will see an option to <strong>Create Database<\/strong>. Click on it.<\/li>\n\n\n\n<li>You will be prompted to enter the following information:\n<ul class=\"wp-block-list\">\n<li><strong>User  Account<\/strong>: Select the domain user that the database will belong to. This is NOT the user for database access but the domain for which you are creating the database.<\/li>\n\n\n\n<li><strong> Name<\/strong>: Enter a name for the new database (e.g., <code>mydatabase<\/code>).<\/li>\n\n\n\n<li><strong>Charset<\/strong>: Leave the default<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once all the details are filled out, click the <strong>Save<\/strong> button to generate the database<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"431\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-130-1024x431.png\" alt=\"\" class=\"wp-image-14539\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-130-1024x431.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-130-300x126.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-130-768x323.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-130.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The database will be created and you will be taken to a list of all databases. I identify your database from the list.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3: Create a User for the database and assign to it<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your database was created but it has no user to access it. To associate a user to it, click the <strong><em>Add user to this database button<\/em><\/strong>, just on the left side of your database. See the image below<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"489\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-131-1024x489.png\" alt=\"\" class=\"wp-image-14540\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-131-1024x489.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-131-300x143.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-131-768x367.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-131.png 1055w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will be presented with a form to fill fill user details. Fill them as you prefer. You may want to save the password for later use, so that you do not have to reset it.<\/li>\n\n\n\n<li>Also, be keen to Click on User privileges option and assign the user all privileges to the DB. See the image below<\/li>\n\n\n\n<li>Once done, click on <strong>Save<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"765\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-133.png\" alt=\"\" class=\"wp-image-14542\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-133.png 934w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-133-300x246.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-133-768x629.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will now see that the DB has been associated with the user that you just created.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"126\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-134.png\" alt=\"\" class=\"wp-image-14545\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-134.png 952w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-134-300x40.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-134-768x102.png 768w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You may now connect the database to your website or use it as you intended.<\/li>\n<\/ul>\n\n\n\n<p>If your server is with <strong>Truehost<\/strong>, you may reach our <strong><a href=\"https:\/\/wa.me\/19726743814\">support team<\/a><\/strong> in case you need further guidance.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a database in CWP (CentOS Web Panel) is an essential step for hosting applications like WordPress, Joomla, or custom-built PHP apps that require database functionality. This can be done either from the CWP Admin panel or CWP user&#8217;s cPanel Prerequisites: A. Using the CWP Admin Step 1: Log in to the CWP Admin Panel [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,2120,1824,1833,1879,2128],"doc_tag":[],"class_list":["post-14531","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-cwp-panel","doc_category-dedicated-servers","doc_category-mysql","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-07","word_count":366,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"CWP Panel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cwp-panel\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"MySQL","term_url":"https:\/\/truehost.com\/support\/docs-category\/mysql\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create a database in Control Web Panel (CWP) -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a database in Control Web Panel (CWP) -\" \/>\n<meta property=\"og:description\" content=\"Creating a database in CWP (CentOS Web Panel) is an essential step for hosting applications like WordPress, Joomla, or custom-built PHP apps that require database functionality. This can be done either from the CWP Admin panel or CWP user&#8217;s cPanel Prerequisites: A. Using the CWP Admin Step 1: Log in to the CWP Admin Panel [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-04T13:49:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/\",\"name\":\"How to create a database in Control Web Panel (CWP) -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-129.png\",\"datePublished\":\"2024-10-04T12:53:16+00:00\",\"dateModified\":\"2024-10-04T13:49:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-129.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-129.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-database-in-control-web-panel-cwp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a database in Control Web Panel (CWP)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a database in Control Web Panel (CWP) -","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:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/","og_locale":"en_US","og_type":"article","og_title":"How to create a database in Control Web Panel (CWP) -","og_description":"Creating a database in CWP (CentOS Web Panel) is an essential step for hosting applications like WordPress, Joomla, or custom-built PHP apps that require database functionality. This can be done either from the CWP Admin panel or CWP user&#8217;s cPanel Prerequisites: A. Using the CWP Admin Step 1: Log in to the CWP Admin Panel [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/","article_modified_time":"2024-10-04T13:49:30+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/","name":"How to create a database in Control Web Panel (CWP) -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png","datePublished":"2024-10-04T12:53:16+00:00","dateModified":"2024-10-04T13:49:30+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-129.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-database-in-control-web-panel-cwp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to create a database in Control Web Panel (CWP)"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=14531"}],"version-history":[{"count":5,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14531\/revisions"}],"predecessor-version":[{"id":14546,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/14531\/revisions\/14546"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=14531"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=14531"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=14531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}