{"id":693,"date":"2024-06-18T14:06:44","date_gmt":"2024-06-18T14:06:44","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=693"},"modified":"2024-06-18T14:06:44","modified_gmt":"2024-06-18T14:06:44","slug":"creating-mysql-databases-and-users","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/creating-mysql-databases-and-users.html","title":{"rendered":"Creating MySQL Databases and Users"},"content":{"rendered":"<p>Databases offer a way of managing large amounts of information over the web easily. They are needed to run many applications that are web-based, such as online retail shops, content management systems, and bulletin boards.<\/p>\n<p>In this article, we will go over the steps that you need to take to create a new database and a new user that will be assigned to the database successfully. When you\u2019re setting up an application or script from scratch, this is something that is typically required. We would suggest using the Softaculous Auto-Installers when possible, which set up applications like Magento, Joomla, and WordPress for you.<\/p>\n<p>You need to log into your account on cPanel to start the whole process. Then, after you\u2019re logged in, go to the tab Databases and search for the MySQL Database Wizard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-694\" src=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8262.png\" alt=\"\" width=\"1022\" height=\"224\" srcset=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8262.png 1022w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8262-300x66.png 300w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8262-768x168.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/p>\n<p>Once you have managed to access this tool, there are some steps you will need to go through, and the first one is the creation of the name of the database. Your cPanel username will prefix the database name, for instance, cpaneluser_db. In order to avoid any confusion that might arise in the future, it is best that you use something descriptive. So, instead of just using \u201cDB,\u201d use something like \u201cwordpress\u201d or \u201cwp.\u201d<\/p>\n<p>You will be asked what should your database password and username be on the net page. The database user is the easiest to create with the same username as the name of the database. When it comes to the password, you can use the \u201cPassword Generator,\u201d which is built-in, or you can just type in a password of your choice. Once you\u2019re satisfied with your username and password, click on the button \u201cCreate User,\u201d which will lead you to the next page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-695\" src=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8263.png\" alt=\"\" width=\"933\" height=\"563\" srcset=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8263.png 933w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8263-300x181.png 300w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8263-768x463.png 768w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/>For the database you just created, you will need to assign the user, and most of the time, for the user, you will need all of the privileges. For this, you will need to tick the box next to the phrase \u201cAll Privileges.\u201d Click on the button \u201cNext Step\u201d once you\u2019ve done this. This is the last step, which means that you\u2019ve managed to create your database and user for your cPanel account successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-696\" src=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8264.png\" alt=\"\" width=\"1108\" height=\"737\" srcset=\"https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8264.png 1108w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8264-300x200.png 300w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8264-1024x681.png 1024w, https:\/\/zalvis.com\/docs\/wp-content\/uploads\/2024\/06\/IMG_8264-768x511.png 768w\" sizes=\"auto, (max-width: 1108px) 100vw, 1108px\" \/><\/p>\n<p>If you want to delete a MySQL database, you need to go to MySQL Databases and go to the section \u201cCurrent Databases.\u201d In the column \u201cActions,\u201d click on the delete that is located next to the database you want to delete. In order to remove the database permanently, just confirm your action, and you\u2019re good to go.<\/p>\n<p>If you want to delete a database user, you need to go to MySQL Databases and navigate to the section \u201cCurrent Users.\u201d Once you\u2019re there, look for the database user that you want to delete, and then click on the delete icon that is net to the database user. In order to confirm the deletion, click the Delete User icon.<\/p>\n<div class=\"upivp69e106499f691\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.upivp69e106499f691 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.upivp69e106499f691 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.upivp69e106499f691 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.upivp69e106499f691 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.upivp69e106499f691 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>Databases offer a way of managing large amounts of information over the web easily. They are needed to run many applications that are web-based, such as online retail shops, content management systems, and bulletin boards. In this article, we will go over the steps that you need to take to create a new database and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-693","post","type-post","status-publish","format-standard","hentry","category-cpanel-hosting"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=693"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/693\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/693\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}