{"id":1093,"date":"2025-08-19T15:07:00","date_gmt":"2025-08-19T14:07:00","guid":{"rendered":"https:\/\/www.4uhosting.co.uk\/articles\/knowledgebase\/use-mysql-databases\/"},"modified":"2026-08-19T14:01:01","modified_gmt":"2026-08-19T13:01:01","slug":"use-mysql-databases","status":"publish","type":"kb_article","link":"https:\/\/www.4uhosting.co.uk\/articles\/knowledgebase\/use-mysql-databases\/","title":{"rendered":"How to Use MySQL Databases in cPanel"},"content":{"rendered":"<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-mysql-databases-main-1.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-mysql-databases-main-1.png\" alt=\"MySQL Databases screen in cPanel\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<h2>Create a MySQL Database<\/h2>\n<ol>\n<li>Go to <strong>Databases &gt; MySQL Databases<\/strong>.<\/li>\n<li value=\"2\">Enter the database name.<\/li>\n<\/ol>\n<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/02-create-database-form-1.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/02-create-database-form-1.png\" alt=\"Create MySQL database form\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<ol start=\"3\">\n<li value=\"3\">Click <strong>Create Database<\/strong>.<\/li>\n<li value=\"4\">Click <strong>Go Back<\/strong>.<\/li>\n<\/ol>\n<h2>Check a Database<\/h2>\n<ol>\n<li>Find <strong>Modify Databases<\/strong>.<\/li>\n<li value=\"2\">Choose the database from <strong>Check Database<\/strong>.<\/li>\n<li value=\"3\">Click <strong>Check Database<\/strong>.<\/li>\n<\/ol>\n<h2>Repair a Database<\/h2>\n<ol>\n<li>Find <strong>Modify Databases<\/strong>.<\/li>\n<li value=\"2\">Choose the database from <strong>Repair Database<\/strong>.<\/li>\n<li value=\"3\">Click <strong>Repair Database<\/strong>.<\/li>\n<\/ol>\n<h2>Create a MySQL User<\/h2>\n<ol>\n<li>Scroll to <strong>MySQL Users<\/strong>.<\/li>\n<li value=\"2\">Enter the username.<\/li>\n<li value=\"3\">Enter and confirm a strong password.<\/li>\n<\/ol>\n<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/03-create-user-form-1.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/03-create-user-form-1.png\" alt=\"Create MySQL user form\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<ol start=\"4\">\n<li value=\"4\">Click <strong>Create User<\/strong>.<\/li>\n<li value=\"5\">Click <strong>Go Back<\/strong>.<\/li>\n<\/ol>\n<h2>Add a User to a Database<\/h2>\n<ol>\n<li>Scroll to <strong>Add User To Database<\/strong>.<\/li>\n<li value=\"2\">Select the user.<\/li>\n<li value=\"3\">Select the database.<\/li>\n<li value=\"4\">Click <strong>Add<\/strong>.<\/li>\n<\/ol>\n<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/04-user-privileges-screen-1.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/04-user-privileges-screen-1.png\" alt=\"MySQL user privileges screen\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<ol start=\"5\">\n<li value=\"5\">Tick the privileges the user needs.<\/li>\n<li value=\"6\">Click <strong>Make Changes<\/strong>.<\/li>\n<\/ol>\n<h2>Remove a User from a Database<\/h2>\n<ol>\n<li>Scroll to <strong>Current Databases<\/strong>.<\/li>\n<li value=\"2\">Find the database.<\/li>\n<li value=\"3\">Find the user under that database.<\/li>\n<li value=\"4\">Click the remove option next to the user.<\/li>\n<li value=\"5\">Confirm the change.<\/li>\n<\/ol>\n<h2>Delete a Database<\/h2>\n<ol>\n<li>Scroll to <strong>Current Databases<\/strong>.<\/li>\n<li value=\"2\">Find the database.<\/li>\n<li value=\"3\">Click <strong>Delete<\/strong>.<\/li>\n<li value=\"4\">Confirm the deletion.<\/li>\n<\/ol>\n<h2>Notes<\/h2>\n<ul>\n<li>Most websites need a database, a database user, and privileges linking the two together.<\/li>\n<li>Keep database passwords somewhere secure.<\/li>\n<li>Do not delete a database unless you are certain it is no longer needed.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create a MySQL Database Go to Databases &gt; MySQL Databases. Enter the database name. Click Create Database. Click Go Back. Check a Database Find&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","kb_category":[19],"class_list":["post-1093","kb_article","type-kb_article","status-publish","hentry","kb_category-cpanel-databases"],"_links":{"self":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article"}],"about":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/types\/kb_article"}],"author":[{"embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1093\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1093\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_category?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}