{"id":599,"date":"2019-02-19T16:31:20","date_gmt":"2019-02-19T11:01:20","guid":{"rendered":"https:\/\/mediastroke.com\/blog\/?p=599"},"modified":"2019-02-20T14:34:38","modified_gmt":"2019-02-20T09:04:38","slug":"wordpress-migration-from-localhost-machine-to-server","status":"publish","type":"post","link":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/","title":{"rendered":"WordPress Migration from localhost machine to server"},"content":{"rendered":"\n

WordPress Migration from localhost machine to server<\/h2>\n\n\n\n

One way to speed up your website development is to build your website on your own machine. Once you finished your website the next step is to move it from your computer to a live site and share your creation with the world. In this article, we will show you how to do migration of WordPress from local machine to server. <\/strong><\/p>\n\n\n\n

1.Download WordPress:-<\/strong><\/p>\n\n\n\n

Download the WordPress file from wordpress.org and unzip the WordPress file in this location var\/www\/html.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
2.\nCreate a database :-<\/strong><\/h5>\n\n\n\n

Create a database for WordPress installation , as well as MySQL user who has all privileges for accessing and modifying it. <\/p>\n\n\n\n

For example in below image we have created one wpdb-demo database.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

however on the other hand we have to provide all privileges to database user.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
3.\nAdd Database information into wp-config.php file:-<\/strong><\/h5>\n\n\n\n

If you have problem with wp-config-sample.php file then rename it to wp-config.php, and add your database information such as database name, database username and database password. Make changes into wp-config.php file.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
4.\nCreate a database into cPanel:-<\/strong><\/h5>\n\n\n\n

Login to cPanel and click to MySQL Databases icon in the databases section. After clicking on MySQL icon you can create a database by specifying its name.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

After creating database we have to add database user and provide strong password to create database user.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

Similarly as local database we have to grant all privileges to the user and click on Make Changes button.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
5.\nExport Local WordPress Database:-<\/strong><\/h5>\n\n\n\n

For exporting your database, simply navigate to localhost\/phpmyadmin\/ and select your WordPress database. After that, click Export button from the top menu bar.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
6.\nImport Local Database on cPanel:-<\/strong><\/h5>\n\n\n\n

Go to your cPanel, Navigate to database section and select phpMyAdmin. Go to import page and click on import tab which is on top of the menu bar. After that, click on Browse button to choose the database file created in step 5.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
7. Make changes likewise local database into imported database file:-<\/strong><\/h5>\n\n\n\n

Once you import local database file then this file should be updated with cPanel database.This changes should be done in wp-config.php file. During updation of file, Make sure you are making changes correctly otherwise connection of database will not establishes.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
8.\nUpload\nWordPress Files to cPanel->public-html:-<\/strong><\/h5>\n\n\n\n

Upload WordPress zip file to file manager->public-html and unzip WordPress file there. <\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
\n9.\nChange URL :-<\/strong><\/h5>\n\n\n\n

For changing WordPress URL permanent you have to change the URL on server. For this go to phpMyAdmin After that go to your created database and click on wp_options <\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

After going through wp-options you will get your WordPress given URL, just double click on it and rename the URL.<\/p>\n\n\n\n

\"\"<\/a>


<\/figcaption><\/figure>\n\n\n\n

<\/p>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

WordPress Migration from localhost machine to server One way to speed up your website development is to build your website […]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-599","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"\nWordPress Migration from localhost machine to server -<\/title>\n<meta name=\"description\" content=\"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Migration from localhost machine to server\" \/>\n<meta property=\"og:description\" content=\"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mediastroke\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-19T11:01:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-20T09:04:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png\" \/>\n<meta name=\"author\" content=\"Ashwini Patil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"WordPress Migration from localhost machine to server\" \/>\n<meta name=\"twitter:description\" content=\"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.\" \/>\n<meta name=\"twitter:creator\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:site\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwini Patil\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\"},\"author\":{\"name\":\"Ashwini Patil\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3\"},\"headline\":\"WordPress Migration from localhost machine to server\",\"datePublished\":\"2019-02-19T11:01:20+00:00\",\"dateModified\":\"2019-02-20T09:04:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\"},\"wordCount\":460,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\",\"name\":\"WordPress Migration from localhost machine to server -\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png\",\"datePublished\":\"2019-02-19T11:01:20+00:00\",\"dateModified\":\"2019-02-20T09:04:38+00:00\",\"description\":\"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1.png\",\"width\":1283,\"height\":579},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mediastroke.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Migration from localhost machine to server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"name\":\"\",\"description\":\"Web Hosting Provider\",\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mediastroke.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\",\"name\":\"MediaStroke\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"width\":320,\"height\":50,\"caption\":\"MediaStroke\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mediastroke\",\"https:\/\/x.com\/mediastrokehost\",\"https:\/\/www.linkedin.com\/company\/mediastroke-servers\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3\",\"name\":\"Ashwini Patil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c6d91fde77af64188e00a7bea44477a42347621e7495fbe45fa3b79bfea7c71?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c6d91fde77af64188e00a7bea44477a42347621e7495fbe45fa3b79bfea7c71?s=96&d=mm&r=g\",\"caption\":\"Ashwini Patil\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Migration from localhost machine to server -","description":"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Migration from localhost machine to server","og_description":"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.","og_url":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/","article_publisher":"https:\/\/www.facebook.com\/mediastroke","article_published_time":"2019-02-19T11:01:20+00:00","article_modified_time":"2019-02-20T09:04:38+00:00","og_image":[{"url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png","type":"","width":"","height":""}],"author":"Ashwini Patil","twitter_card":"summary_large_image","twitter_title":"WordPress Migration from localhost machine to server","twitter_description":"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.","twitter_creator":"@mediastrokehost","twitter_site":"@mediastrokehost","twitter_misc":{"Written by":"Ashwini Patil","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#article","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/"},"author":{"name":"Ashwini Patil","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3"},"headline":"WordPress Migration from localhost machine to server","datePublished":"2019-02-19T11:01:20+00:00","dateModified":"2019-02-20T09:04:38+00:00","mainEntityOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/"},"wordCount":460,"commentCount":0,"publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/","url":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/","name":"WordPress Migration from localhost machine to server -","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1-300x135.png","datePublished":"2019-02-19T11:01:20+00:00","dateModified":"2019-02-20T09:04:38+00:00","description":"This blog describes how to migrate WordPress from local machine to server. In this blog, you will also get to know how to handle database and WordPress.","breadcrumb":{"@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#primaryimage","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/02\/Wordpress-Migration-from-localhost-machine-to-server1.png","width":1283,"height":579},{"@type":"BreadcrumbList","@id":"https:\/\/mediastroke.com\/blog\/wordpress-migration-from-localhost-machine-to-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mediastroke.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress Migration from localhost machine to server"}]},{"@type":"WebSite","@id":"https:\/\/mediastroke.com\/blog\/#website","url":"https:\/\/mediastroke.com\/blog\/","name":"","description":"Web Hosting Provider","publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mediastroke.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mediastroke.com\/blog\/#organization","name":"MediaStroke","url":"https:\/\/mediastroke.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","width":320,"height":50,"caption":"MediaStroke"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mediastroke","https:\/\/x.com\/mediastrokehost","https:\/\/www.linkedin.com\/company\/mediastroke-servers"]},{"@type":"Person","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3","name":"Ashwini Patil","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c6d91fde77af64188e00a7bea44477a42347621e7495fbe45fa3b79bfea7c71?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c6d91fde77af64188e00a7bea44477a42347621e7495fbe45fa3b79bfea7c71?s=96&d=mm&r=g","caption":"Ashwini Patil"}}]}},"_links":{"self":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/comments?post=599"}],"version-history":[{"count":13,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/599\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/599\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/media?parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/categories?post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/tags?post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}