{"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-03-16T12:12:15","modified_gmt":"2026-03-16T12:12:15","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 class=\"no-margin\">To import your database, first <b><a href=\"\/support\/1583545-how-can-i-access-phpmyadmin\" target=\"_blank\" class=\"intercom-content-link\">open it via phpMyAdmin<\/a><\/b> and check the current content.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">It&rsquo;s highly recommended to make sure that your database<b> <a href=\"\/support\/4536290-how-to-delete-all-database-tables-in-phpmyadmin\" target=\"_blank\" class=\"intercom-content-link\">is empty<\/a><\/b> before importing a new database backup<\/p>\n<\/div><p class=\"no-margin\">Next, since your database will be selected by default, click on <b>Import:<\/b><\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/04\/80e60a33-87c8-4e4d-bd1d-239a4b3a0e94.jpg\"><\/div><p class=\"no-margin\">Choose a file in <b>.sql<\/b> or <b>.sql.zip<\/b> format:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/04\/c21f7cf5-c961-4aaf-aeb0-59842f131d53.jpg\"><\/div><p class=\"no-margin\">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 &#128522; <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you encounter any issues, check the following section.<\/p><p class=\"no-margin\">\n<\/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><p class=\"no-margin\">\n<\/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 href=\"\/support\/4536306-how-do-i-import-a-database-over-ssh\" target=\"_blank\" class=\"intercom-content-link\">via SSH<\/a><\/b> instead.<\/p><p class=\"no-margin\">\n<\/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\">\n<\/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><p class=\"no-margin\">\n<\/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 href=\"\/support\/4564363-how-can-i-change-permissions-of-the-database-user\" target=\"_blank\" class=\"intercom-content-link\">fix the database permissions<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/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\">\n<\/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 href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS plans<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! Now you know how to import a MySQL database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Importing a database via phpMyAdmin using hPanel<\/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-PT","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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"predecessor-version":[{"id":5035,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1328\/revisions\/5035"}],"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}]}}