How to install wordpress on MS SQL

24,613

Solution 1

You can't. Even when migrating the data over Wordpress would still use MySQL specific API calls and MySQL specific SQL statements, you'd first have to refactor the whole codebase in order to make it compatible.

Solution 2

It is definitely possible to run WordPress connecting to MS SQL Server. We are running such an instance in production at my company. Here are two posts that describe the process of using WordPress with MS SQL Server and IIS. I am using such a configuration right now on my local box.

http://techsugar.wordpress.com/2011/03/02/how-to-install-wordpress-on-iis-7-5-using-sql-server-2008/

http://wordpress.visitmix.com/development/installing-wordpress-on-sql-server

Solution 3

WordPress won't natively run MSSQL. However, an up-to-date fork that supports MSSQL does exist.

Solution 4

There is no feasible way to do this. MS SQL support is an open request in WordPress's bug tracking system.

Here is a blog entry from a guy who tried it. It didn't end well.

For completeness's sake, there seems to be an approach that is in alpha Stadium (Not suitable for everyday use!) that may one day become a workable workaround. wordpress-mssql

Solution 5

So we are running Wordpress 3 with MS SQL 2008 under IIS 7 and the Wincache plugin and it's great. The trick is as another poster suggested is the MySQL that exists in many plugins. The project is here http://sourceforge.net/projects/wp-sqlsrv/

Share:
24,613
bvandrunen
Author by

bvandrunen

I am a newish web programmer who is 5 years old (computer knowledge that is since I found programming in college) I work with web sites (php, html) / wordpress / seo / c# / VB / sql server and other various aspects in the computer world.

Updated on August 04, 2022

Comments

  • bvandrunen
    bvandrunen almost 2 years

    I am trying to convert my wordpress site which is based on MYSQl to a MS SQL because my we have our main database through MS SQL and we are creating database driven wordpress sites. I have been able to automate all of our wordpress installation + setup through database scripts through MYSQL but all of our variables + inputs are in MS SQL.

    Would it be easier to create a new database in MYSQL and migrate all of my data over from MS SQL or is there a way to have wordpress use MS SQL. I am wondering if anyone has been able to do this or has any hints. Thanks

    EDIT/UPDATE: I have accomplished this by using a linked server. Here is a website if anyone else is reading this and wants to run the wordpress database by using Microsoft SQL Server Management Studio: