{"id":18279,"date":"2026-09-26T10:42:48","date_gmt":"2026-09-26T07:42:48","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/create-mysql-database-cpanel\/"},"modified":"2026-09-26T10:42:48","modified_gmt":"2026-09-26T07:42:48","password":"","slug":"create-mysql-database-cpanel","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-mysql-database-cpanel\/","title":{"rendered":"How to Create a MySQL Database and User in cPanel"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> In cPanel open <strong>MySQL Databases<\/strong>: create the database under <strong>Create New Database<\/strong>, add a user under <strong>MySQL Users \u2192 Add New User<\/strong>, then under <strong>Add User To Database<\/strong> choose both, click <strong>Add<\/strong>, tick <strong>All Privileges<\/strong> and click <strong>Make Changes<\/strong>.<\/div>\n<h2>Step 1: Create the database<\/h2>\n<ol>\n<li>Log in to cPanel (see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-log-in-to-cpanel\/\">how to log in to cPanel<\/a>).\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/16\/cPanel-logo.png\" alt=\"\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062f\u0629 \u0628\u064a\u0627\u0646\u0627\u062a \u0648\u0631\u0628\u0637 \u0625\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0647\u0627\" width=\"555\" height=\"200\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<li>In the <strong>Databases<\/strong> section, click <strong>MySQL Databases<\/strong>. cPanel looks slightly different between versions, but the options are the same.\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_1.png\" alt=\"\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062f\u0629 \u0628\u064a\u0627\u0646\u0627\u062a \u0648\u0631\u0628\u0637 \u0625\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0647\u0627\" width=\"757\" height=\"238\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<li>Under <strong>Create New Database<\/strong>, type a name and click <strong>Create Database<\/strong>.\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_2.png\" alt=\"Create New Database\" width=\"756\" height=\"334\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<\/ol>\n<h2>Step 2: Create a database user<\/h2>\n<ol>\n<li>On the same page, under <strong>MySQL Users \u2192 Add New User<\/strong>, enter a username and a strong password (letters and numbers), then click <strong>Create User<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_3.png\" alt=\"\u0633\u0646\u062c\u062f \u0643\u0644\u0645\u0629 ( MySQL Users ) \u0648\u062a\u062d\u062a\u0647\u0627 \u0643\u0644\u0645\u0629 ( Add New User ) \" width=\"755\" height=\"394\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<li>Or click <strong>Password Generator<\/strong> to create a strong password automatically, and save it.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_4.png\" alt=\"\u0646\u0642\u0648\u0645 \u0628\u0627\u0644\u0636\u063a\u0637 \u0639\u0644\u064aPassword Generator \u0644\u062a\u0648\u0644\u064a\u062f \u0628\u0627\u0633\u0648\u0631\u062f \u062a\u0644\u0642\u0627\u0626\u064a \u0648\u0627\u0633\u062a\u062e\u062f\u0645\u0647\u0627\" width=\"337\" height=\"263\" border=\"0\" title=\"\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_5.png\" alt=\"\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<\/ol>\n<h2>Step 3: Assign the user to the database<\/h2>\n<ol>\n<li>Under <strong>Add User To Database<\/strong>, choose the user and the database you just created and click <strong>Add<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_6.png\" alt=\"\u0646\u062e\u062a\u0627\u0631 \u0625\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0648\u0625\u0633\u0645 \u0627\u0644\u0642\u0627\u0639\u062f\u0647 \u0627\u0644\u0630\u064a\u0646 \u062a\u0645 \u0627\u0646\u0634\u0627\u0621\u0647\u0645\u0627 \u0644\u0644\u062a\u0648 \u0648\u0646\u0636\u063a\u0637 ( Add )\" width=\"756\" height=\"247\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<li>Tick <strong>All Privileges<\/strong>, then click <strong>Make Changes<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_7.png\" alt=\"All Privileges\" width=\"756\" height=\"725\" border=\"0\" title=\"\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_8.png\" alt=\"Make Changes\" width=\"755\" height=\"222\" border=\"0\" title=\"\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/hyyathost.com\/images\/2017\/04\/17\/pl_mysql_9.png\" alt=\"\u062a\u0645 \u0627\u0639\u0637\u0627\u0621 \u0627\u0644\u0635\u0644\u062d\u064a\u0627\u062a \u0648\u062a\u0645 \u0631\u0628\u0637 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0648\u0627\u0644\u0642\u0627\u0639\u062f\u0629\" width=\"755\" height=\"215\" border=\"0\" title=\"\"><\/p>\n<\/li>\n<\/ol>\n<p><strong>Note:<\/strong> cPanel adds your account prefix to database and user names. When a script asks for them, use the full names, for example <strong>user_dbname<\/strong>.<\/p>\n<p>Next: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/install-wordpress-on-cpanel-hosting\/\">install WordPress with your new database<\/a>.<\/p>\n<p>Related service: <a href=\"https:\/\/www.hyyat.com\/en\/shared-hosting-2\/\">cPanel shared hosting<\/a> from Hyyat Host, with 24\/7 support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: In cPanel open MySQL Databases: create the database under Create New Database, add a user under MySQL Users \u2192 Add New User, then under Add User To Database choose both, click Add, tick All Privileges and click Make Changes. Step 1: Create the database Log in to cPanel (see how to log in [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18279","docs","type-docs","status-publish","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-09","word_count":200,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Website control panel ( cpanel )","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18279"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18279\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18279"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18279"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}