{"id":50383,"date":"2026-11-20T05:24:08","date_gmt":"2026-11-20T05:24:08","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-create-a-database-in-cpanel\/"},"modified":"2026-11-28T06:06:24","modified_gmt":"2026-11-28T06:06:24","slug":"how-to-create-a-database-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-in-cpanel\/","title":{"rendered":"How to Create a Database in cPanel"},"content":{"rendered":"<p>Most dynamic websites, including WordPress, need a MySQL database to store content and settings. In cPanel you can create one in under a minute. This guide covers the creation step and what to do next so your website can use it.<\/p>\n<p><strong>1.<\/strong> Log in to your cPanel account.<\/p>\n<p><strong>2.<\/strong> In the <strong>Databases<\/strong> section, click on <strong>MySQL Databases<\/strong>.<br \/> <img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/mysql-databases-icon.gif\" align=\"middle\" loading=\"lazy\" alt=\"\"><\/p>\n<p><strong>3.<\/strong> In the <strong>New Database<\/strong> field, enter a name for the new database you wish to create.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/create-db.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<p><strong>4.<\/strong> Click on <strong>Create Database<\/strong>.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/paper-db-added-successfully.gif\" align=\"middle\" loading=\"lazy\" alt=\"\"><\/p>\n<h2>What happens to the database name<\/h2>\n<p>cPanel adds your account username in front of the name you type, for example <em>username_mysite<\/em>. Use that full name when you configure your website, such as in the WordPress wp-config.php file.<\/p>\n<h2>Next: create a user and give access<\/h2>\n<p>A database does nothing until a user can connect to it. Create a database user, then add that user to the database with the privileges your website needs. Use a strong password and keep it somewhere safe. See the related guides below for each step.<\/p>\n<h2>Good practice<\/h2>\n<p>Choose a short, clear name, keep one database per website, and include the database in your regular backups.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>How many databases can I create?<\/strong> The limit depends on your hosting plan. Your cPanel account shows the number you have used.<\/p>\n<p><strong>Why is there a prefix on my database name?<\/strong> cPanel adds your username so database names stay unique on the shared server. This is normal.<\/p>\n<p><strong>Do I need a database for a static website?<\/strong> No. Plain HTML sites do not need one. WordPress and most web applications do.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-in-cpanel\/\">Create a database in cPanel<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-username-in-cpanel\/\">Create a database username<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-add-a-user-to-a-database-and-grant-privileges\/\">Add a user to a database and grant privileges<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-delete-a-database-in-cpanel\/\">Delete a database in cPanel<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a MySQL database in cPanel on KickHost hosting, then add a user and privileges. Clear steps for websites and WordPress in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50383","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":2,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50383\/revisions"}],"predecessor-version":[{"id":53307,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50383\/revisions\/53307"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}