This 'plugin' enables WP to use databases supported by PHP's PDO abstraction layer. Currently, mysql and sqlite drivers are provided.
This plugin is not a simple WordPress plugin. Beware. You cannot just put the files in plugins and enable through the control panel. This is because the database needs to be connected adn established BEFORE the plugins are loaded.
So ... to install PDO For WordPress please do the following:
Step 1: unzip the files in your wp-content directory. After unzipping the structure should look like this
The key thing is the presence of the pdo directory and the db.php file in the 'root' of the wp-content directory.
Step 2: Edit your wp-config.php file so that:
this line of code is placed directly after the define('COLLATE',''); line:
define('DB_TYPE', 'sqlite'); //mysql or sqlite`
Note: currently only mysql and sqlite are supported. I hope that more flavours will appear soon.
As part of the general wordpress installation you should define your secret keys too (in wp-config.php).
and that's it. two steps.
The next time you load your wordpress installation it will automatically create the database and take you through the basic WordPress installation routine. If you have problems with the installation you should receive a meaningful error messsage. If not, the most common error by far is permissions. You MUST make sure that php can read/write to wp-content/database.
Requires: 2.3.0 or higher
Compatible up to: 2.9.2
Last Updated: 2010-1-14
Active Installs: Less than 10
Got something to say? Need help?