{"id":18361,"date":"2026-09-29T21:06:27","date_gmt":"2026-09-29T18:06:27","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/import-export-mysql-database-phpmyadmin\/"},"modified":"2026-11-22T13:55:33","modified_gmt":"2026-11-22T10:55:33","password":"","slug":"import-export-mysql-database-phpmyadmin","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/import-export-mysql-database-phpmyadmin\/","title":{"rendered":"Export and Import a Database with phpMyAdmin in cPanel: Backups and Site Moves"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>The short version<\/b><b>Export:<\/b> open phpMyAdmin, pick the database on the left, then <b>Export<\/b> and <b>Export<\/b> again in SQL format. <b>Import:<\/b> create an empty database in cPanel first, select it in phpMyAdmin, click <b>Import<\/b> and choose the .sql file.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18361-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-phpmyadmin-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-phpmyadmin-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-phpmyadmin-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-phpmyadmin-en.mp4<\/a><\/video><\/div><\/div>\n<p>phpMyAdmin is a web interface for managing databases. Site owners mostly need it for two jobs: taking a copy of the database before a big change, and moving a database from one host to another.<\/p>\n<h2>Opening phpMyAdmin<\/h2>\n<p>In the Databases section of cPanel click <b>phpMyAdmin<\/b>. It opens in a new tab without another password and lists only your account&#8217;s databases on the left. You can change its language under Appearance settings on its home page.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-fd-en-db-pma.webp\" alt=\"The phpMyAdmin home page in cPanel\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<h2>Part one: export (the backup)<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Select the database on the left<\/b> important: without it, phpMyAdmin exports at server level.<\/li>\n<li><b>Click the Export tab<\/b> in the top bar.<\/li>\n<li><b>Keep the method Quick and the format SQL<\/b> enough for most sites.<\/li>\n<li><b>Click Export<\/b> a .sql file downloads to your computer.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-fd-en-db-export.webp\" alt=\"The phpMyAdmin Export tab with method and format options\" width=\"670\" height=\"290\" loading=\"lazy\" \/><\/figure>\n<p>Choose Custom if you want gzip compression to make the file smaller, or to export certain tables only.<\/p>\n<h2>Part two: import<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Create an empty database and user<\/b> in cPanel; see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-mysql-database-cpanel\/\">creating a database<\/a>.<\/li>\n<li><b>Select the new database in phpMyAdmin<\/b> in the left column.<\/li>\n<li><b>Click Import<\/b> then Choose File and pick the .sql file.<\/li>\n<li><b>Leave the character set as utf-8<\/b> and click the button at the bottom of the page.<\/li>\n<li><b>Wait for the success message<\/b> and check the tables appear under the database name.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-fd-en-db-import.webp\" alt=\"The phpMyAdmin Import tab with the file field\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<p>Next to the file button you see the maximum import size on your account. A zip or gzip file is accepted and keeps the size down.<\/p>\n<h2>Import errors and fixes<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Message<\/th>\n<th>Meaning<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>No database selected<\/td>\n<td>No database was chosen before importing<\/td>\n<td>Select it on the left and import again<\/td>\n<\/tr>\n<tr>\n<td>#1044 Access denied &#8230; CREATE DATABASE<\/td>\n<td>The file tries to create a database under another name<\/td>\n<td>Remove the CREATE DATABASE and USE lines at the top of the file<\/td>\n<\/tr>\n<tr>\n<td>#1050 Table already exists<\/td>\n<td>The database is not empty<\/td>\n<td>Import into an empty database, or drop the old tables after a backup<\/td>\n<\/tr>\n<tr>\n<td>File exceeds the maximum size<\/td>\n<td>The upload limit was exceeded<\/td>\n<td>Compress the file, ask support to import it, or see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/increase-phpmyadmin-upload-size-whm\/\">increasing the phpMyAdmin upload size<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"hkb-note\">After moving a WordPress database to a new domain, update the site address in the <code>wp_options<\/code> table or in WordPress settings. If you forgot the admin password, see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/reset-wordpress-password-phpmyadmin\/\">resetting a WordPress password from phpMyAdmin<\/a>.<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Does exporting take my site down?<\/summary>\n<p>No, it only reads the data.<\/p>\n<\/details>\n<details>\n<summary>What is the difference between Quick and Custom?<\/summary>\n<p>Quick exports the whole database with default settings; Custom lets you pick tables, compression and other options.<\/p>\n<\/details>\n<details>\n<summary>Can I import a very large file?<\/summary>\n<p>If it exceeds the limit shown, compress it or contact support to import it.<\/p>\n<\/details>\n<details>\n<summary>Where is the .sql file after exporting?<\/summary>\n<p>In your computer&#8217;s downloads folder.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-mysql-database-cpanel\/\">Create a MySQL Database and User in cPanel: With the Wizard or by Hand<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/repair-mysql-database-cpanel\/\">Check and Repair a MySQL Database in cPanel When Tables Are Corrupted<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/increase-phpmyadmin-upload-size-whm\/\">How to Increase the phpMyAdmin Upload Size on a cPanel Server<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/reset-wordpress-password-phpmyadmin\/\">How to Reset a WordPress Password from phpMyAdmin<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-website-database-phpmyadmin\/\">Protecting Your Website Database and phpMyAdmin: Users, Privileges and Passwords<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/\">All cPanel guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The short versionExport: open phpMyAdmin, pick the database on the left, then Export and Export again in SQL format. Import: create an empty database in cPanel first, select it in phpMyAdmin, click Import and choose the .sql file. phpMyAdmin is a web interface for managing databases. Site owners mostly need it for two jobs: taking [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":20805,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18361","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-11","word_count":536,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"cPanel Guides","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18361"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18361\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/20805"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18361"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18361"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}