{"id":1171,"date":"2020-10-23T15:44:44","date_gmt":"2020-10-23T15:44:44","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/10\/23\/4564363-how-to-change-permissions-for-a-database-user-in-hostinger\/"},"modified":"2026-11-25T08:41:46","modified_gmt":"2026-11-25T08:41:46","slug":"4564363-how-to-change-permissions-for-a-database-user-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4564363-how-to-change-permissions-for-a-database-user-in-hostinger\/","title":{"rendered":"How to change permissions for a database user in Hostinger"},"content":{"rendered":"<p>Change permissions for a database user in Hostinger to control what a MySQL user can do with its database, for example to make a database read-only. On the database\u2019s page, click <b>Change<\/b> next to <b>Access<\/b>, then choose <b>Full access<\/b>, <b>Read and write<\/b>, <b>Read only<\/b>, or pick individual privileges.<\/p>\n<h3>Before you start<\/h3>\n<ul>\n<li>If you don&#8217;t have a database yet, see <a data-click-id=\"hgr-post-content-link-how-to-create-a-new-mysql-database-in-hostinger\" href=\"\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/\">how to create a new MySQL database in Hostinger.<\/a><\/li>\n<\/ul>\n<h2 id=\"h-change-database-user-permissions\">Change database user permissions<\/h2>\n<p>Every MySQL user has <b>Full access<\/b> to its database by default. Change the access level in the <b>Change MySQL user permissions<\/b> window.<\/p>\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> and select <b>Databases<\/b> in the left sidebar.<\/li>\n<li>Click \u203a next to the database.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26009\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11.png\" alt=\"\" width=\"1203\" height=\"244\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11.png 1203w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-300x61.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-1024x208.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-768x156.png 768w\" sizes=\"(max-width: 1203px) 100vw, 1203px\" \/><\/li>\n<li>In the <b>Connection<\/b> card, click <b>Change<\/b> next to <b>Access<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26025\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39.png\" alt=\"\" width=\"1155\" height=\"525\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39.png 1155w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39-300x136.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39-1024x465.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39-768x349.png 768w\" sizes=\"(max-width: 1155px) 100vw, 1155px\" \/><\/li>\n<li>Select one of three access levels:\n<ul>\n<li><b>Full access<\/b> \u2013 everything your app may need. This is the recommended option.<\/li>\n<li><b>Read and write<\/b> \u2013 read and change data, but not the tables themselves.<\/li>\n<li><b>Read only<\/b> \u2013 only read data, for example for reports and analytics tools.<\/li>\n<\/ul>\n<\/li>\n<li>Click <b>Update<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26026\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_1.png\" alt=\"\" width=\"540\" height=\"471\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_1.png 540w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_1-300x262.png 300w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/li>\n<\/ol>\n<p>To change the permissions of a database assigned to another website, click <b>View plan databases<\/b> on the <b>Databases<\/b> page, click \u22ee next to the database, and select <b>Change permissions<\/b>.<\/p>\n<h3>Choose individual MySQL privileges<\/h3>\n<p>Click <b>Choose privileges<\/b> in the <b>Change MySQL user permissions<\/b> window to pick each privilege yourself. The privileges are grouped into three sections:<\/p>\n<ul>\n<li><b>Data<\/b> \u2013 SELECT, INSERT, UPDATE, and DELETE.<\/li>\n<li><b>Structure<\/b> \u2013 CREATE, ALTER, DROP, INDEX, REFERENCES, CREATE VIEW, SHOW VIEW, and CREATE TEMPORARY TABLES.<\/li>\n<li><b>Advanced<\/b> \u2013 CREATE ROUTINE, ALTER ROUTINE, EXECUTE, TRIGGER, EVENT, and LOCK TABLES.<\/li>\n<\/ul>\n<p>Clear the checkbox next to a privilege to revoke it, then click <b>Update<\/b> to apply the changes.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-26027\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_2.png\" alt=\"\" width=\"540\" height=\"552\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_2.png 540w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-39_2-293x300.png 293w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/p>\n<p class=\"no-margin\"><b>Additional resource<\/b><\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-how-to-manage-mysql-databases\" class=\"intercom-content-link\" href=\"\/support\/1864454-how-to-manage-mysql-databases-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to manage MySQL databases<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Changing permissions for a database user 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-1171","post","type-post","status-publish","format-standard","hentry","category-database-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4564363-how-to-change-permissions-for-a-database-user-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4564363-como-cambiar-los-permisos-de-un-usuario-de-la-base-de-datos-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4564363-comment-modifier-les-autorisations-d-un-utilisateur-de-base-de-donnees-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4564363-bagaimana-cara-mengubah-permission-atau-hak-akses-user-database-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4564363-como-alterar-as-permissoes-do-usuario-do-banco-de-dados-na-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/4564363-\u044f\u043a-\u0437\u043c\u0456\u043d\u0438\u0442\u0438-\u0434\u043e\u0437\u0432\u043e\u043b\u0438-\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430-\u0431\u0430\u0437\u0438","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1171","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=1171"}],"version-history":[{"count":8,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1171\/revisions"}],"predecessor-version":[{"id":26028,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1171\/revisions\/26028"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}