{"id":1879,"date":"2024-06-02T13:03:29","date_gmt":"2024-06-02T13:03:29","guid":{"rendered":"https:\/\/kb.cloudhostgeek.com\/?p=1879"},"modified":"2025-11-05T10:48:54","modified_gmt":"2025-11-05T10:48:54","slug":"set-up-mysql-database","status":"publish","type":"post","link":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/","title":{"rendered":"Creating MySQL databases and users using cPanel"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-e99076ca871d1db519e0cddfe75cf7f5\"><strong><strong>Steps to Set Up MySQL Database<\/strong><\/strong><\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-0e830dff2cd74898012141f836600d1f\">1. Firstly, log in to your <strong><a style=\"color:#7a00df;\" href=\"https:\/\/id.cpanel.net\/get\/login?\">cPanel account<\/a><\/strong> provided by your <strong><a style=\"color:#7a00df;\" href=\"https:\/\/bigcloudy.com\/\">web hosting provider<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-0be5b74dd8f1fb90bb173bb3161558dc\">2. Within the cPanel interface, navigate to the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Databases<\/mark><\/strong>&#8221; section. This may be prominently displayed on the homepage or categorized under a broader section like &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Software<\/mark><\/strong>&#8221; or &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Web Applications<\/mark><\/strong>.&#8221;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-3ce532e9704f63378fa1a49142240066\">3. Find this option \u201c<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Create New Database<\/mark><\/strong>\u201d on within the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Databases<\/mark><\/strong>&#8221; section. This could be a button, icon, or menu option depending on your specific cPanel theme.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-d1ca3ac7c0227cc128e07315223e8463\">4. Enter a descriptive and unique name for your new database. Choose a name that reflects the purpose of the database and adheres to allowed characters (typically alphanumeric characters, underscores, and hyphens).<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-37b8e31ef38260673700369a2c805a57\">5. Click the button labeled &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Create Database<\/mark><\/strong>&#8221; or a similar action to initiate the process of creating your new MySQL database on the server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-f2d44c5f3dab932b07cb12e006307a89\">Steps to <strong>Add a User<\/strong><\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-aad28c5ad5398a64b4bef0399f01d2a7\">1. While the database creation section might offer options for user management as well, some cPanel configurations might have a separate section dedicated to user accounts.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f1aafe7276f24d89dc72f3ced65a7618\">2. Explore your cPanel interface to locate options related to &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">MySQL Users<\/mark><\/strong>&#8221; or &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Database Users<\/mark><\/strong>.&#8221;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f12eb354806697193e2ca1bba4852639\">\u00a03. Look for an option labeled &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Create New User<\/mark><\/strong>&#8221; or a similar action within the user management section.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-21e4fbfdb3fe0e3d92fa662a552b1f22\">4. Provide a username for the database user account and enter a secure password twice. Consider using the password generator tool offered by cPanel to ensure a strong and <strong><a href=\"https:\/\/docs.cpanel.net\/cpanel\/preferences\/password-and-security\/\" style=\"color:#7a00df;\">unique password<\/a><\/strong> is created.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-cd480a0e1d2440f02deec4e8153001fe\">5. Click on the button labeled &#8220;<mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><strong>Create Use<\/strong>r<\/mark>&#8221; or a similar action to finalize the creation of the new user account.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-5e368c784c78ff7a4d9c4f9b5b783921\"><strong>Connecting User and Database<\/strong><\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-05a266ea750d5a08ecc0865dce5ceee3\">1. Locate the section labeled &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Add User To Database<\/mark><\/strong>&#8221; or a similar functionality within your cPanel interface.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-a35894e134a77f2b6a520abb592de195\">2. From the provided dropdown menus, choose the user you just created and the database you wish to associate them with.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-791d240378b538b31b24f6bbd5e83403\">3. Click the button labeled &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Add<\/mark><\/strong>&#8221; or a similar action to establish the connection between the user account and the database.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-42f8497a4f13cbd896530f839bea54f5\">Finally, you have successfully created a new MySQL database and associated it with a user account within your cPanel environment. This user account indeed possesses the necessary permissions to interact with the database content for your website or application.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-1b32233a3a08d90170c0a3a999514bf3\">Additional Information<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/docs.cpanel.net\/\" style=\"color:#7a00df;\">cPanel Documentation<\/a><\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Steps to Set Up MySQL Database 1. Firstly, log in to your cPanel account provided by your web hosting provider. 2. Within the cPanel interface, navigate to the &#8220;Databases&#8221; section. This may be prominently displayed on the homepage or categorized under a broader section like &#8220;Software&#8221; or &#8220;Web Applications.&#8221; 3. Find this option \u201cCreate New Database\u201d on within the &#8220;Databases&#8221; section. This could be a button, icon, or menu option depending on your specific cPanel theme. 4. Enter a descriptive and unique name for your new database. Choose a name that reflects the purpose of the database and adheres to allowed characters (typically alphanumeric characters, underscores, and hyphens). 5. Click the button labeled &#8220;Create Database&#8221; or a similar action to initiate the process of creating your new MySQL database on the server. Steps to Add a User 1. While the database creation section might offer options for user management as well, some cPanel configurations might have a separate section dedicated to user accounts. 2. Explore your cPanel interface to locate options related to &#8220;MySQL Users&#8221; or &#8220;Database Users.&#8221; \u00a03. Look for an option labeled &#8220;Create New User&#8221; or a similar action within the user management section. 4. Provide a username for the database user account and enter a secure password twice. Consider using the password generator tool offered by cPanel to ensure a strong and unique password is created. 5. Click on the button labeled &#8220;Create User&#8221; or a similar action to finalize the creation of the new user account. Connecting User and Database 1. Locate the section labeled &#8220;Add User To Database&#8221; or a similar functionality within your cPanel interface. 2. From the provided dropdown menus, choose the user you just created and the database you wish to associate them with. 3. Click the button labeled &#8220;Add&#8221; or a similar action to establish the connection between the user account and the database. Finally, you have successfully created a new MySQL database and associated it with a user account within your cPanel environment. This user account indeed possesses the necessary permissions to interact with the database content for your website or application. Additional Information<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[26,5],"tags":[],"class_list":["post-1879","post","type-post","status-publish","format-standard","hentry","category-cp-mysql","category-cpanel","no-post-thumbnail"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.7 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Set Up MySQL Database and User in cPanel?<\/title>\n<meta name=\"description\" content=\"Streamline Database Management: This guide gives details to set up MySQL database and user within your cPanel account.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating MySQL databases and users using cPanel\" \/>\n<meta property=\"og:description\" content=\"Streamline Database Management: This guide gives details to set up MySQL database and user within your cPanel account.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudHostGeek Help Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BigCloudyHosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-02T13:03:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-05T10:48:54+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:site\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Set Up MySQL Database and User in cPanel?","description":"Streamline Database Management: This guide gives details to set up MySQL database and user within your cPanel account.","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:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/","og_locale":"en_US","og_type":"article","og_title":"Creating MySQL databases and users using cPanel","og_description":"Streamline Database Management: This guide gives details to set up MySQL database and user within your cPanel account.","og_url":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/","og_site_name":"CloudHostGeek Help Center","article_publisher":"https:\/\/www.facebook.com\/BigCloudyHosting\/","article_published_time":"2024-06-02T13:03:29+00:00","article_modified_time":"2025-11-05T10:48:54+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@bigcloudypvtltd","twitter_site":"@bigcloudypvtltd","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/#article","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/"},"author":{"name":"admin","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0"},"headline":"Creating MySQL databases and users using cPanel","datePublished":"2024-06-02T13:03:29+00:00","dateModified":"2025-11-05T10:48:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/"},"wordCount":350,"publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"articleSection":["CP MySQL","cPanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/","name":"How to Set Up MySQL Database and User in cPanel?","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website"},"datePublished":"2024-06-02T13:03:29+00:00","dateModified":"2025-11-05T10:48:54+00:00","description":"Streamline Database Management: This guide gives details to set up MySQL database and user within your cPanel account.","breadcrumb":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/set-up-mysql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Creating MySQL databases and users using cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","name":"https:\/\/www.bigcloudy.com\/","description":"Your step-by-step guide to hosting, servers &amp; website tools.","publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bigcloudy.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization","name":"BigCloudy internt services pvt ltd.","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","contentUrl":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","width":368,"height":114,"caption":"BigCloudy internt services pvt ltd."},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BigCloudyHosting\/","https:\/\/x.com\/bigcloudypvtltd","https:\/\/www.instagram.com\/bigcloudypvtltd\/"]},{"@type":"Person","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/kb.cloudhostgeek.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=1879"}],"version-history":[{"count":0,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1879\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=1879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=1879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}