Solved

How to connect a SQL server with the website.

Posted on 2012-04-10
11
466 Views
Last Modified: 2012-06-22
Hello:

I have a SQL server database that is now serving the data for a website.
Actually, this database is currently on a remote SQL server and the communication between the Website and the database is done with via that remote SQL server.

I have to change that configuration in that the Website will communicate with a new SQL server LOCALLY in our building. The DBA from the remote location sent over a full backup of the DB and I have restored it on the New server that needs to be the production server soon.
The website is built on Wordpress.

How do I make the connection between the Website and the SQL server?
How do I make them speak to one another?

Thank you.
0
Comment
Question by:noamco36
  • 5
  • 5
11 Comments
 
LVL 5

Assisted Solution

by:rtay
rtay earned 84 total points
ID: 37829153
Are you hosting the website locally as well?
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 416 total points
ID: 37829324
You need a web server that is running PHP.  Is the original web site using MySQL or Microsoft SQL Server?  And is it on IIS or Apache?
0
 

Author Comment

by:noamco36
ID: 37829327
no, the website is hosted with ipage.com
0
 

Author Comment

by:noamco36
ID: 37829357
and will continue to be hosted by ipage.com after we switch to the new LOCAL SQL server.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 416 total points
ID: 37829362
Hosting it Outside and using any SQL server Inside may be a problem.  You have to configure the firewalls and access permissions in ways that a normal Wordpress site doesn't need to do.  Why are you splitting the web hosting and the SQL hosting?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:noamco36
ID: 37829388
The site is actually using PHP/MySQL.  It is actually just  a WordPress modified/customized site (does that make any difference?),   but the site its getting data from a remote SQL server.

This is the configuration the company chose.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 416 total points
ID: 37829402
The way that Wordpress works is that it gets all of it's content from the database which means that it makes multiple queries for every single page load.  Typically in a hosting environment, the SQL server is either on the same machine or on the local network with 100Mbps or 1Gbps access.  Unless you have that kind of access to your LOCAL SQL server from the hosting site, your Wordpress site is going to Slow Down a very great deal.
0
 

Author Comment

by:noamco36
ID: 37829549
I am fine with the connection speed. how do you MAKE the connection between them?

(thats the way it is now with the remote SQL server.)
I just have to move the database to a new SQL server and make sure its feeding the website.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 416 total points
ID: 37829724
Set up a MySQL server and import the databases and set up the users that the Wordpress site requires.  Then just change the hostname in the Wordpress config files.  You do have to open your firewall to port 3306 for external access to the MySQL server.
0
 

Author Comment

by:noamco36
ID: 37829744
you mean, to change from using SQL server to MySQL in general for the website?
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 416 total points
ID: 37829756
I mean that Wordpress was not designed to use Microsoft SQL Server at all.  If someone else already made it work for you, then Ok.  Otherwise, please read this page: http://wordpress.org/support/topic/how-to-integrate-wordpress-with-ms-sql-server-database

And MySQL and Microsoft SQL Server can exist on the same machine just fine if that's what you need.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IN with @variable 5 20
php namespace question with Twilio 4 16
Having multiple API's on a site 10 16
Join vs where 2 0
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now