{"id":2197,"date":"2023-08-11T00:41:33","date_gmt":"2023-08-10T16:41:33","guid":{"rendered":"https:\/\/ebuildhost.com\/?post_type=docs&#038;p=2197"},"modified":"2023-08-11T00:41:33","modified_gmt":"2023-08-10T16:41:33","slug":"create-database-user-and-assign-permissions-in-cpanel","status":"publish","type":"docs","link":"https:\/\/ebuildhost.com\/en\/docs\/products\/web-hosting\/cpanel\/cpanel-databases\/create-database-user-and-assign-permissions-in-cpanel\/","title":{"rendered":"Create Database, User, and Assign Permissions in cPanel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this tutorial, we will explore how to create a database, create a user, and assign permissions in cPanel. These steps are vital in setting up your website or application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Log in to cPanel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, you&#8217;ll need to log into your cPanel account. You can find the cPanel URL in our welcome letter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter your cPanel username and password, then click &#8220;Log in&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"461\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM.png\" alt=\"\" class=\"wp-image-2159\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM.png 401w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-261x300.png 261w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-130x150.png 130w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-21x24.png 21w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-31x36.png 31w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-42x48.png 42w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Or you can log in to cPanel by using our Client Area one-click login feature.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Services -&gt; My Services -&gt; Select your hosting service -&gt; In Actions you can find &#8220;Login to cPanel&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"428\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM.png\" alt=\"\" class=\"wp-image-2163\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM.png 417w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-292x300.png 292w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-146x150.png 146w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-24x24.png 24w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-36x36.png 36w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-48x48.png 48w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Locate the MySQL Databases or Database Wizard<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On your cPanel home page, find the &#8220;Databases&#8221; section. In this section, you should see the &#8220;MySQL Databases&#8221; and &#8220;MySQL Database Wizard&#8221; options.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"219\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM.png\" alt=\"\" class=\"wp-image-2198\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM.png 1006w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-300x65.png 300w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-150x33.png 150w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-768x167.png 768w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-24x5.png 24w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-36x8.png 36w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-11-at-12.36.49-AM-48x10.png 48w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you are creating a database for the first time, we recommend using the &#8220;MySQL Database Wizard&#8221; because this tool will guide you through all the steps, including creating a database, creating a user, and assigning permissions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Use the MySQL Database Wizard to Create a Database and User<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the &#8220;MySQL Database Wizard&#8221;, then follow the wizard&#8217;s instructions.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enter the name of the database in the &#8220;New Database&#8221; field, then click &#8220;Next Step&#8221;.<\/li>\n\n\n\n<li>On the &#8220;Add User&#8221; page, enter a username and password, then click &#8220;Create User&#8221;.<\/li>\n\n\n\n<li>On the &#8220;Manage User Privileges&#8221; page, select the privileges you wish to grant to the user, then click &#8220;Next Step&#8221;.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Confirm the Database and User Have Been Created Successfully<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On the final page, you should see a message saying that the database and user have been created successfully. Make a note of these details as you may need them when setting up your website or application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! You now know how to create a database, create a user, and assign permissions in cPanel. If you encounter any difficulties along the way, don&#8217;t hesitate to contact our customer service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explore how to create a datab [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","meta":{"footnotes":""},"docs_categories":[50],"class_list":["post-2197","docs","type-docs","status-publish","format-standard","hentry","docs_categories-cpanel-databases"],"_links":{"self":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":1,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2197\/revisions"}],"predecessor-version":[{"id":2202,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2197\/revisions\/2202"}],"wp:attachment":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/media?parent=2197"}],"wp:term":[{"taxonomy":"docs_categories","embeddable":true,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs_categories?post=2197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}