WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've long wished Wordpress would support SQL Server, but it would also really amazing if it supported MongoDB (for example.)

My question is are there any plans to do so, at all?

Is the core Wordpress team so commited to MySQL that there are no plans to offer any sort of support for other DBs (at least anytime soon?)

This post leads me to believe any such thing won't happen:


However, as an example (while I much prefer Wordpress to it) Drupal 7 now features a ...

Database abstraction layer, enabling the use of many databases, such as Maria DB, Microsoft SQL Server, MongoDB, Oracle, MySQL, PostgreSQL, or SQLite


share|improve this question
up vote 5 down vote accepted

Hi @Justin Jenkins:

It's very hard for use to say if WordPress will or will not support it since they can make those decisions and we cannot. However we can look at some evidence.

SQL Server?

For SQL Server on one hand a trac ticket was debated and stalled a year ago; since then more recently it appears that Automattic and Microsoft are exploring business relationships:

Mongo DB?

For Mongo DB there was a support question proposing it but no official acknowledgement and no real traction:


So, SQL Server looks more likely than MongoDB, at least from Automattic in the near term but that's only a guess and not one I'd actually bet on.

What about Plugins?

More importantly one would need to consider that a major benefit of WordPress is the huge repository of free plugins and many of those encode MySQL directly and thus would cease to work and blunt much of the benefit of WordPress.

Drupal Modules and their Support of Other Databases Besides MySQL

What's more in the Drupal world you do have multiple database support but the reality is that vast majority of Drupal modules that interact with the database only support MySQL. Supporting multiple databases requires many times more effort and most Drupal module developer simply don't have the resources or even the inclination to create free plugins with those levels of support and I would expect the same would be true with WordPress.

Real-world Use-Cases?

Which bring me to an honest question: What's the real-world use-cases for this? As a technologist myself I always look at these types of these as really cool, but as an entrepreneur I also look at them pragmatically and ask for use-cases. Are there situations where MySQL is really not an option but SQL Server is? Are the installations where benefits of Mongo DB would exceed the downsides?

(And just as importantly, are there companies who really need this who are willing to spend money to support the development and maintenance? More specifically I'd be curious to know your motivations? Again, that's an honest question; market research really, and not to challenge you in any way for asking.)

Next Steps?

If you want to hear it more from the horse's mouth I'd suggest but asking on the wp-hackers mailing list and posting a proposal ticket for MongoDB on trac.


I just came across this page on Microsoft.com that claims they have a patch for using SQL Server with WordPress. I didn't try it so I can't vouch for it, though here's Microsoft's WordPress page:

share|improve this answer
Thanks for the detailed response. The SQL Server news is quite interesting ... the main reason I even ask is because in an environment that run SQL Server (or MongoDB, for example) when all the rest of our data ... intranet, users, cms, etc, etc, are SQL Server it makes the fact that Wordpress only supports MySQL very limiting (for example it's difficult to sync or users, or share templates, etc,) Having the back-end data stored in SQL Server would open up a huge host of options for us.! – Justin Jenkins Jan 6 '11 at 22:46
@Justin Jenkins - Thanks for the explanation of why you want this; to minimize servers and maintenance. Another honest question: is the need for SQL Server/Mongo DB important enough to access limited functionality from WordPress? (i.e. less plugin support.) – MikeSchinkel Jan 7 '11 at 4:17


See: http://codex.wordpress.org/Using_Alternative_Databases#Solutions/

Plugin Alternative

I used this plugin: http://wordpress.org/extend/plugins/pdo-for-wordpress/ lately to run WordPress on my NAS using a SQLITE database in the backend instead of MySQL, which worked great.

What databases are supported?

Currently the basic layer supports any database that is supported by PDO.

  • MS SQL Server (PDO) - Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
  • Firebird/Interbase (PDO) - Firebird/Interbase Functions (PDO_FIREBIRD)
  • IBM (PDO) - IBM Functions (PDO_IBM)
  • Informix (PDO) - Informix Functions (PDO_INFORMIX)
  • MySQL (PDO) - MySQL Functions (PDO_MYSQL)
  • Oracle (PDO) - Oracle Functions (PDO_OCI)
  • ODBC and DB2 (PDO) - ODBC and DB2 Functions (PDO_ODBC)
  • PostgreSQL (PDO) - PostgreSQL Functions (PDO_PGSQL)
  • SQLite (PDO) - SQLite Functions (PDO_SQLITE)
  • Note that through the PDO_ODBC extension, all ODBC supported databases are also supported, subject to drivers being available

HOWEVER each database needs its own driver and currently the only drivers written for this plugin are for

  • sqlite and
  • mysql

So for MySQL someone should write a driver

share|improve this answer
Thanks for the info on PDO (SQLite) For WordPress, looks interesting. – Justin Jenkins Jan 6 '11 at 22:50
+1. Good find! – MikeSchinkel Jan 7 '11 at 4:18
This plugin hasn't been touched in over two years, and has zero support for WP 3.x. It's an interesting find, and would be nice if someone could to update and debug it, but as it stands right now it's not a very useful solution. There are a handful of posts on the forums where people have hacked it to bits to make it semi-functional, but it seems much more hassle than it's worth. – SickHippie Mar 6 '12 at 22:00

I did some research on possibilities to migrate WordPress to MongoDB or other NoSQL database to make it really scalable. Seams there is quite good way (unfortunatelly not a short one) to achieve this.

For a start I've done little script in PHP which is migrating MySQL tables to Mongo collections doing some aggregations while preserving original relational dependencies:


Next step which I'm now working on is to make MongoDB understand something which would be "close" to SQL - I've named it "nSQL" - it's json based dialect of SQL operating on hierachical collections


It's a work in progress - nothing yet there committed - however I have already offline w protype version which processes simple nSQL queries of the form:

           sel:['id','emailUse','emailType','emailSubject'],    // properties/colums to return
           flt:{emailUse:0,emailType:'test'},           // filter (where phrase equivalent)
           ctb:'wp_eshop_emails'                // table equivalent (can be agregated in collection as path)
        cid:ci,                         //connection id
        sid:si                          //session id

It can work on both MySQL, MongoDB or almost any other Relational/non relational backend It's compilation of two projects: - a MongoDB fork (slightly extended MongoDB version by some "nSQL" commands) - a fork of SQLRelay project (relational DB proxy handling many SQL backends)

OK - so above component would be the main part of work. There is a lot of development to make it fully functional (handling of aggregations, sorting, subdocument filters, inserts/updates/deletes, maybe also joins etc) End effect seems to be very promissing in general - not only for WP. Imagine for instance SQL to NoSQL migration using several simple "INSERT FROM INTO" commands ...

The rest of work would be to connect it with WordPress - through some sort of SQL2NSQL translator (ie this PDO plugin above)

Is there someone interested ? Help in analysis/development ? Financial investing ?

share|improve this answer

PDO for WordPress works fantastic if you don't mind being stuck at WP 2.9.1RC1 as it isn't supported in WP 3.x. Unfortunately, there a lot of plugins that are written to run only on WP 3.x

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.