{"id":1179,"date":"2020-10-19T06:33:29","date_gmt":"2020-10-19T06:33:29","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/10\/19\/4548519-how-to-import-a-database-with-phpmyadmin-on-cpanel-at-hostinger\/"},"modified":"2026-03-16T12:12:13","modified_gmt":"2026-03-16T12:12:13","slug":"4548519-how-to-import-a-database-with-phpmyadmin-on-cpanel-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4548519-how-to-import-a-database-with-phpmyadmin-on-cpanel-at-hostinger\/","title":{"rendered":"How to Import a Database With PhpMyAdmin on cPanel at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">If you have a database file in <b>.sql<\/b> or <b>.sql.zip<\/b> format and wish to import it to your cPanel hosting, first <b><a href=\"\/support\/4548523-how-to-access-phpmyadmin-in-cpanel\" target=\"_blank\" class=\"intercom-content-link\">open phpMyAdmin<\/a><\/b>. Next, select your desired database and 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\/2020\/10\/90fcef39-a81a-4adf-8185-4d11a323786e.jpg\"><\/div><p class=\"no-margin\">Choose the file from your local device:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/10\/578d8d6e-ea0a-4f7d-b013-217acf9df966.jpg\"><\/div><p class=\"no-margin\">Proceed further without changing anything on the settings and click <b>Go<\/b>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The maximum size for a database that can be uploaded via phpMyAdmin is <b>128 MB<\/b>. If your database file is larger than that, you can <b><a href=\"\/support\/4664722-how-do-i-import-a-database-over-ssh-on-cpanel\" target=\"_blank\" class=\"intercom-content-link\">import it via SSH<\/a> <\/b>instead.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_93a7506790\">Common Errors<\/h2><p class=\"no-margin\">Here are some errors that may appear during the importing process and how to fix them:<\/p><p class=\"no-margin\">\n<\/p><h3 id=\"incorrect-format-parameter\">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=\"command-denied-to-user\">Command Denied to User<\/h3><p class=\"no-margin\">If you see this error, it means that your database user doesn&rsquo;t have the required permissions to import the database. To fix it, go to your cPanel and open <b>MySQL Databases<\/b> &rarr; Your user &rarr; <b>Manage user privileges<\/b>. Verify that permissions are set correctly &ndash; by default, all checkmarks should be added: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/10\/84d72dfb-2d6f-4887-b855-1186ffd57feb.jpg\"><\/div><h3 id=\"access-is-denied-you-need-the-super-privilege-for-this-operation\">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 on cPanel &#128522;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Importing a database via phpMyAdmin on Hostinger using cPanel<\/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":[195],"tags":[],"class_list":["post-1179","post","type-post","status-publish","format-standard","hentry","category-mysql"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4548519-how-to-import-a-database-with-phpmyadmin-on-cpanel-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4548519-como-importar-una-base-de-datos-con-phpmyadmin-en-cpanel-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4548519-comment-importer-une-base-de-donnees-avec-phpmyadmin-sur-cpanel\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4548519-bagaimana-cara-impor-database-menggunakan-phpmyadmin-di-cpanel-at-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/4548519-como-importar-um-banco-de-dados-com-o-phpmyadmin-no-cpanel\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1179","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=1179"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1179\/revisions"}],"predecessor-version":[{"id":4631,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1179\/revisions\/4631"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}