{"id":1328,"date":"2019-02-08T10:36:10","date_gmt":"2019-02-08T10:36:10","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger\/"},"modified":"2026-10-15T08:26:10","modified_gmt":"2026-10-15T08:26:10","slug":"1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger\/","title":{"rendered":"How to import a database with phpMyAdmin in Hostinger"},"content":{"rendered":"<p>Import a database with phpMyAdmin in Hostinger by uploading an .sql file, or a compressed .sql file, of up to 256 MB through the Import tab. Empty the target database first, then select the file and click Go. Import databases larger than 256 MB over SSH instead.<\/p><h2 id=\"h-import-a-database-with-phpmyadmin-in-hostinger\">Import a database with phpMyAdmin in Hostinger<\/h2><ol>\n<li>Open your database via <a data-click-id=\"hgr-post-content-link-phpmyadmin\" href=\"https:\/\/www.hostinger.com\/support\/1583545-how-to-access-phpmyadmin-at-hostinger\/\">phpMyAdmin<\/a> and check its current content.\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">It&rsquo;s highly recommended to make sure that your database<b> <a data-click-id=\"hgr-post-content-link-is-empty\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4536290-how-to-delete-all-database-tables-in-phpmyadmin-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">is empty<\/a><\/b> before importing a new database backup<\/div>\n<\/li>\n<li>Next, since your database will be selected by default, click on <b>Import:<br>\n<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/04\/80e60a33-87c8-4e4d-bd1d-239a4b3a0e94.jpg\" alt=\"phpMyAdmin toolbar with the Import tab highlighted\" data-media-id=\"2929\"><br>\n<\/b><\/li>\n<li>Choose a file in <b>.sql<\/b> or <b>.sql.zip<\/b> format:<br>\n<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/04\/c21f7cf5-c961-4aaf-aeb0-59842f131d53.jpg\" alt=\"phpMyAdmin import page with highlighted file upload field and Choose file button\" data-media-id=\"2930\"><\/li>\n<li>Proceed further without making any other changes to the import settings and click <b>Go<\/b>. In a few moments, your database will be imported.<\/li>\n<\/ol><p class=\"no-margin\">If you encounter any issues, check the following section.<\/p><h2 id=\"possible-issues-when-importing-a-database\">Common errors<\/h2><p class=\"no-margin\">Here you will find the most common issues when importing a database:<\/p><h3 id=\"h_cea0b1e399\">The database is too big<\/h3><p class=\"no-margin\">Max size for a database that can be uploaded via phpMyAdmin is 256 MB. If your database file is bigger, you can easily import it <b><a data-click-id=\"hgr-post-content-link-via-ssh\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4536306-how-to-import-a-database-over-ssh-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">via SSH<\/a><\/b> instead.<\/p><h3 id=\"h_c59a93ca77\">Incorrect format parameter<\/h3><p class=\"no-margin\">Make sure that your file format is <b>.sql<\/b>. Alternatively, you can import a compressed database with the following formats: gzip, bzip2, and zip (for example, <b>database.sql.zip<\/b>).<\/p><p class=\"no-margin\">If you have checked and the file format is correct, this error might also indicate a corrupted database file.<\/p><h3 id=\"h_dfb70d00a4\">Command denied to user<\/h3><p class=\"no-margin\">If you get this error, it means that your database user doesn&rsquo;t have enough permissions to import the database. All you need to do is <b><a data-click-id=\"hgr-post-content-link-fix-the-database-permissions\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4564363-how-to-change-permissions-for-a-database-user-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">fix the database permissions<\/a><\/b>.<\/p><h3 id=\"h_fa914a861c\">Access is denied. You need the SUPER privilege for this operation<\/h3><p class=\"no-margin\">This error means that your database includes queries that require SUPER privileges to be executed. In this case, double-check the nature of the queries on your <b>.sql<\/b> file and remove them if possible using any text editor of your choice. Next, try importing the database again.<\/p><p class=\"no-margin\">If the queries that require SUPER privileges are definitely required, you may consider going for one of our <b><a data-click-id=\"hgr-post-content-link-vps-plans\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" rel=\"noopener\">VPS plans<\/a><\/b>.<\/p><p class=\"no-margin\">Your MySQL database now contains the tables and data from your imported backup file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Import a database with phpMyAdmin in Hostinger: upload an .sql file up to 256 MB and fix common errors like format, size, and permissions.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[243],"tags":[],"class_list":["post-1328","post","type-post","status-publish","format-standard","hentry","category-importing-and-exporting-databases"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1884149-como-importar-una-base-de-datos-con-phpmyadmin-en-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1884149-bagaimana-cara-impor-database-dengan-phpmyadmin-di-hostinger","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/1884149-kaip-importuoti-duomenu-baze-per-phpmyadmin-hostinger-platformoje","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1884149-como-importar-um-banco-de-dados-com-o-phpmyadmin-no-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1328","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=1328"}],"version-history":[{"count":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"predecessor-version":[{"id":20719,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1328\/revisions\/20719"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}