{"id":1922,"date":"2026-01-28T03:50:28","date_gmt":"2026-01-28T03:50:28","guid":{"rendered":"https:\/\/veerhost.com\/docs\/getting-started\/how-to-migrate-a-wordpress-site-to-veerhost-files-database\/"},"modified":"2026-07-16T22:30:26","modified_gmt":"2026-07-16T22:30:26","slug":"how-to-migrate-a-wordpress-site-to-veerhost-files-database","status":"publish","type":"docs","link":"https:\/\/veerhost.com\/de\/docs\/getting-started\/how-to-migrate-a-wordpress-site-to-veerhost-files-database\/","title":{"rendered":"How to Migrate a WordPress Site to Veerhost (Files + Database)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Migrating your WordPress website to VeerHost involves transferring your website files, importing your MySQL database, and updating your WordPress configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide walks you through the complete migration process to help you move your website with minimal downtime.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Before You Begin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting the migration, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An active VeerHost hosting account.<\/li>\n\n\n\n<li>Your website files from your previous hosting provider.<\/li>\n\n\n\n<li>A MySQL database backup (<code>.sql<\/code> file).<\/li>\n\n\n\n<li>Access to your previous hosting account or backup files.<\/li>\n\n\n\n<li>Access to cPanel on your VeerHost hosting account.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Download Your Website Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download all website files from your current hosting provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most important folder is usually:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can download your files using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File Manager<\/li>\n\n\n\n<li>FTP (FileZilla or another FTP client)<\/li>\n\n\n\n<li>SSH (if available)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure all WordPress files are included, especially:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>wp-admin<\/li>\n\n\n\n<li>wp-content<\/li>\n\n\n\n<li>wp-includes<\/li>\n\n\n\n<li>wp-config.php<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Upload Your Website Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to your VeerHost cPanel account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open <strong>File Manager<\/strong> and navigate to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Upload your website files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your website is compressed as a ZIP archive:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Upload the ZIP file.<\/li>\n\n\n\n<li>Select it in File Manager.<\/li>\n\n\n\n<li>Click <strong>Extract<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that all WordPress files are located directly inside the correct directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create a MySQL Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before importing your database, create a new database in cPanel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open <strong>MySQL\u00ae Databases<\/strong> and:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new database.<\/li>\n\n\n\n<li>Create a database user.<\/li>\n\n\n\n<li>Assign the user to the database.<\/li>\n\n\n\n<li>Grant <strong>All Privileges<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Save the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Database Name<\/li>\n\n\n\n<li>Database Username<\/li>\n\n\n\n<li>Database Password<\/li>\n\n\n\n<li>Database Host<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For most hosting accounts, the database host is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Import Your Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open <strong>phpMyAdmin<\/strong> from cPanel.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the newly created database.<\/li>\n\n\n\n<li>Click the <strong>Import<\/strong> tab.<\/li>\n\n\n\n<li>Choose your <code>.sql<\/code> backup file.<\/li>\n\n\n\n<li>Click <strong>Import<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Wait until the import process completes successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Update the wp-config.php File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using <strong>File Manager<\/strong>, open the <code>wp-config.php<\/code> file located in your WordPress installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update the following values so they match your new database:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>DB_NAME<\/code><\/li>\n\n\n\n<li><code>DB_USER<\/code><\/li>\n\n\n\n<li><code>DB_PASSWORD<\/code><\/li>\n\n\n\n<li><code>DB_HOST<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file after making any changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Point Your Domain to VeerHost<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your domain is still pointing to your previous hosting provider, update your DNS settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can either:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Point your domain using DNS A records.<\/li>\n\n\n\n<li>Update your domain&#8217;s nameservers to VeerHost (if applicable).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Allow time for DNS propagation after making the changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Update Website URLs (If Required)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your website has been moved to a different domain, subdomain, or directory, update the WordPress site URLs stored in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can be done using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A WordPress search and replace plugin.<\/li>\n\n\n\n<li>A database search and replace tool.<\/li>\n\n\n\n<li>SQL queries executed through phpMyAdmin.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Updating the URLs helps prevent broken links, redirect loops, and missing images.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Verify the Website<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the migration is complete:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visit your website.<\/li>\n\n\n\n<li>Log in to the WordPress dashboard.<\/li>\n\n\n\n<li>Check that pages and posts load correctly.<\/li>\n\n\n\n<li>Verify images and media files.<\/li>\n\n\n\n<li>Test contact forms.<\/li>\n\n\n\n<li>Confirm that plugins and themes are functioning normally.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your website does not load correctly after migration:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify the database credentials in <code>wp-config.php<\/code>.<\/li>\n\n\n\n<li>Confirm the database imported successfully.<\/li>\n\n\n\n<li>Check that your domain is pointing to the correct server.<\/li>\n\n\n\n<li>Ensure all website files were uploaded.<\/li>\n\n\n\n<li>Update the WordPress site URLs if the domain has changed.<\/li>\n\n\n\n<li>Clear your browser cache and test again.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always create a complete backup before migrating your website.<\/li>\n\n\n\n<li>Migrate both your website files and database to ensure a complete transfer.<\/li>\n\n\n\n<li>If your website uses email accounts, migrate or recreate them separately, as email data is not included in a standard WordPress migration.<\/li>\n\n\n\n<li>Large websites may take longer to upload and import depending on their size.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Migrating your WordPress website to VeerHost involves transferring your website files, importing your MySQL database, and updating your WordPress configuration. This guide [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1894,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1922","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/docs\/1922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/comments?post=1922"}],"version-history":[{"count":3,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/docs\/1922\/revisions"}],"predecessor-version":[{"id":3643,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/docs\/1922\/revisions\/3643"}],"up":[{"embeddable":true,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/docs\/1894"}],"wp:attachment":[{"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/media?parent=1922"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/veerhost.com\/de\/wp-json\/wp\/v2\/doc_tag?post=1922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}