{"id":1427,"date":"2019-02-08T10:36:02","date_gmt":"2019-02-08T10:36:02","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/"},"modified":"2026-11-25T08:20:24","modified_gmt":"2026-11-25T08:20:24","slug":"1583542-how-to-create-a-new-mysql-database-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/","title":{"rendered":"How to create a new MySQL Database in Hostinger"},"content":{"rendered":"<p>Create a new MySQL database in Hostinger from the <b>Databases<\/b> page of your website by clicking <b>Add database<\/b> and entering a database name, username, and password. The new database and its MySQL user are created together, and the database appears on the website\u2019s <b>Databases<\/b> page, where you can <a data-click-id=\"hgr-post-content-link-manage\" href=\"https:\/\/www.hostinger.com\/support\/1864454-how-to-manage-mysql-databases-in-hostinger\/\">manage<\/a> it.<\/p>\n<h2 id=\"h-create-a-mysql-database-in-hostinger-dashboard\">Create a MySQL database in Hostinger dashboard<\/h2>\n<ol>\n<li>Go to <a data-click-id=\"hgr-post-content-link-websites\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> \u2192 <b>Manage site<\/b> for the website that will use the database, and select <b>Databases<\/b> in the left sidebar.<\/li>\n<li>Click <b>Add database<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26006\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-09_1.png\" alt=\"\" width=\"1209\" height=\"292\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-09_1.png 1209w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-09_1-300x72.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-09_1-1024x247.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-09_1-768x185.png 768w\" sizes=\"(max-width: 1209px) 100vw, 1209px\" \/><\/li>\n<li>Select <b>Create a new database<\/b> and click <b>Continue<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26007\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10.png\" alt=\"\" width=\"546\" height=\"360\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10.png 546w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-10-300x198.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/li>\n<li>In the <b>Create a MySQL database and user<\/b> window, enter the <b>MySQL database name<\/b>, such as <code>shop<\/code>.<\/li>\n<li>Enter the <b>MySQL username<\/b>, such as <code>shopuser<\/code>.<\/li>\n<li>Enter a <b>Password<\/b>, or click <b>Generate password<\/b> to create a strong one.<\/li>\n<li>(Optional) Select <b>Import data from a file<\/b> to bring in tables and data from a backup.<\/li>\n<li>Click <b>Create<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26013\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19.png\" alt=\"\" width=\"552\" height=\"517\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19.png 552w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-19-300x281.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/li>\n<\/ol>\n<p>Keep the following in mind when you create a database:<\/p>\n<ul>\n<li>The first part of the database name and username, such as <code>u123456789_<\/code>, is unique to your account and can\u2019t be removed or changed.<\/li>\n<li>Each database can only have one user. If you require multiple users, consider a <a data-click-id=\"hgr-post-content-link-vps-plan\" href=\"https:\/\/www.hostinger.com\/vps-hosting\">VPS plan<\/a>.<\/li>\n<li>The database password must contain at least one number and one uppercase and lowercase letter, with a minimum length of 8 characters.<\/li>\n<\/ul>\n<p>To import a database into an existing database instead, see <a data-click-id=\"hgr-post-content-link-how-to-import-a-database-from-the-hostinger-dashboard\" href=\"https:\/\/www.hostinger.com\/support\/how-to-import-a-database-from-the-hostinger-dashboard\/\">how to import a database from the Hostinger dashboard<\/a>.<\/p>\n<p>Your new MySQL database is ready to use, and its connection details appear on the database\u2019s page.<\/p>\n<p><b>Manage your new database<\/b><\/p>\n<ul>\n<li><a data-click-id=\"hgr-post-content-link-manage-mysql-databases-in-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/1864454-how-to-manage-mysql-databases-in-hostinger\/\">Manage MySQL databases in Hostinger<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-change-a-database-password\" href=\"https:\/\/www.hostinger.com\/support\/1583522-how-to-change-a-database-password-in-hostinger\/\">Change a database password<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-change-permissions-for-a-database-user\" href=\"https:\/\/www.hostinger.com\/support\/4564363-how-to-change-permissions-for-a-database-user-in-hostinger\/\">Change permissions for a database user<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-delete-a-database\" href=\"https:\/\/www.hostinger.com\/support\/1583544-how-to-delete-a-database-in-hostinger\/\">Delete a database<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create a MySQL database and user for your website from the Databases page in Hostinger dashboard.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[245],"tags":[],"class_list":["post-1427","post","type-post","status-publish","format-standard","hentry","category-database-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583542-como-crear-una-base-de-datos-mysql-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583542-comment-faire-pour-creer-une-nouvelle-base-de-donnees-mysql-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583542-cara-membuat-database-mysql-baru-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583542-como-criar-um-novo-banco-de-dados-mysql-na-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583542-\u044f\u043a-\u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438-\u043d\u043e\u0432\u0443-\u0431\u0430\u0437\u0443-\u0434\u0430\u043d\u0438\u0445-mysql-\u043d\u0430-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1427"}],"version-history":[{"count":10,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1427\/revisions"}],"predecessor-version":[{"id":26014,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1427\/revisions\/26014"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}