The Movable Type Knowledge Base

Unsupported driver

Question

I receive an error message that says "Unsupported driver MT::ObjectDriver::DBD::mysql" (or something similar).

Answer

Error occurs when initializing the system during installation or upgrade

  • Make sure that you ran mt-check.cgi and that it reported the particular database module you are wanting to use as installed. If the check script does not detect the appropriate database module, you'll need to contact your host to have it installed; or choose another database option which is already supported by your server.

  • If you are using a SQL option, make sure you have the correct ObjectDriver setting in mt-config.cgi1. The following are the only valid options for SQL databases:

    • ObjectDriver DBI::mysql
    • ObjectDriver DBI::postgres
    • ObjectDriver DBI::sqlite

  • Pay careful attention to the proper capitalization; the correct setting for mt-config.cgi is ObjectDriver, not Objectdriver; and you should be using DBI, not DBD.

Error references DBI.pm

In order to use one of the SQL options, the DBI Perl module must also be installed. You will need to contact your host and have them install this module for you.

Version 3.2 of Movable Type requires a minimum DBI version of 1.21 or higher; so if you see this error during the upgrade process accompanied by references such as Bareword "SQL_DATETIME" not allowed, this means the DBI module on your server is too old and must be updated.

Error references DB_File.pm
  • If you're trying to use the default Berkeley database option, you will need to contact your host and have them install the DB_File Perl module for you, as it is required to use Berkeley.

  • If you're trying to use a SQL option, make sure you have uncommented the SQL configuration settings2 in mt-config.cgi. Commented settings will be ignored by the system.

Error occurs after you've been using Movable Type successfully for a period of time

  • Verify that you have not changed any of your database settings in mt-config.cgi1. If you've made changes to your settings, you should restore them to as they were previously.

  • If no changes have been made, then something has happened to the database module on your server, and you'll need to contact your host to have them restore it for you.

1 In versions prior to 3.2, the configuration file is named mt.cfg.

2 To uncomment a setting means to remove the # from the beginning of the line where it appears.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.