Title: Moving WordPress from Linux to Windows Server 2012 &#8211; database issue
Last modified: August 30, 2016

---

# Moving WordPress from Linux to Windows Server 2012 – database issue

 *  [suzy-tm](https://wordpress.org/support/users/suzy-tm/)
 * (@suzy-tm)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/moving-wordpress-from-linux-to-windows-server-2012-database-issue/)
 * I have been tasked with transferring a WordPress website from a test server (
   Linux server) to the client’s own server (Windows 2012 server).
 * So far so good as I have transferred the files and created the new database to
   go with it. Also updated the wp-config.php file to include the new database info.
 * As per documentation I have read elsewhere, I changed the DB_HOST in the config
   file from ‘localhost’ to the IP address of the new server.
 * When I try to load the website I get the following error:
 * **Notice: Use of undefined constant DB_HOST – assumed ‘DB_HOST’ in D:\inetpub\
   wwwroot\website\wp-includes\load.php on line 350 **
 * Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such
   host is known. in D:\inetpub\wwwroot\website\wp-includes\wp-db.php on line 1482
 * Warning: mysql_connect(): [2002] php_network_getaddresses: getaddrinfo failed:
   No such host is known. (trying to connect via tcp://DB_HOST:3306) in D:\inetpub\
   wwwroot\website\wp-includes\wp-db.php on line 1482
 * Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such
   host is known. in D:\inetpub\wwwroot\website\wp-includes\wp-db.php on line 1482
 * I can’t make sense of it! Can anyone help?
 * Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [suzy-tm](https://wordpress.org/support/users/suzy-tm/)
 * (@suzy-tm)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/moving-wordpress-from-linux-to-windows-server-2012-database-issue/#post-6616374)
 * I should mention that phpmyAdmin and mySQL are installed and apparently correctly
   set up on the Windows Server.

Viewing 1 replies (of 1 total)

The topic ‘Moving WordPress from Linux to Windows Server 2012 – database issue’ 
is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [Install](https://wordpress.org/support/topic-tag/install/)
 * [windows server](https://wordpress.org/support/topic-tag/windows-server/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [suzy-tm](https://wordpress.org/support/users/suzy-tm/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/moving-wordpress-from-linux-to-windows-server-2012-database-issue/#post-6616374)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
