{"id":50386,"date":"2026-11-20T05:24:08","date_gmt":"2026-11-20T05:24:08","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-create-a-database-username-in-cpanel\/"},"modified":"2026-11-28T09:02:46","modified_gmt":"2026-11-28T09:02:46","slug":"how-to-create-a-database-username-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-username-in-cpanel\/","title":{"rendered":"How to Create a Database Username in cPanel"},"content":{"rendered":"<p>A database user is the login your website script uses to reach its database. You create it in MySQL Databases and then link it to a database.<\/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\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<p><strong>3.<\/strong> Under <strong>MySQL Users<\/strong>, in the <strong>Username<\/strong> field, enter the new username you want to create.<\/p>\n<p><strong>4.<\/strong> Enter your new password or use a password generator.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/createdb-user.gif\" alt=\"\" loading=\"lazy\"><br \/><strong>5.<\/strong> Click on <strong>Create a User<\/strong>.<\/p>\n<p><strong>Tip:<\/strong> Write down the database username and password on a notepad so you can easily recall them while installing a script manually.<\/p>\n<h2>Use a strong password<\/h2>\n<p>Use the password generator and keep the password somewhere safe. You will need it in your website configuration file.<\/p>\n<h2>Next step: link the user<\/h2>\n<p>Creating a user is not enough. Add the user to a database and grant privileges so your script can read and write data.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Why does my username have a prefix?<\/strong> cPanel adds your account name in front of database users so they stay unique on the server.<\/p>\n<p><strong>Can I change the password later?<\/strong> Yes. Open MySQL Databases and use Change Password next to the user.<\/p>\n<h2>Related guides<\/h2>\n<ul>\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<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-import-a-database-via-phpmyadmin-in-cpanel\/\">Import a database<\/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 username in cPanel. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50386","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50386","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\/50386\/revisions"}],"predecessor-version":[{"id":53370,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50386\/revisions\/53370"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}