[wp-hackers] WorPress dies silently without MySQL PHP extention

Otto otto at ottodestruct.com
Fri Dec 4 14:23:40 UTC 2009

Correct me if I'm wrong, but I thought WordPress' support for other
DB's was basically limited to replacing the wpdb class entirely. To
support another DB, you'd basically make your own db.php file in the
wp-content directory, then the wp-db.php never gets loaded.

So if that is the case, this mysql_connect function would never get called.


On Thu, Dec 3, 2009 at 7:44 PM, Vlad GURDIGA <gurdiga at gmail.com> wrote:
> Hello!
> When there is no MySQL PHP extension installed, for example when you
> have WordPress working on an SQLite DB instead of MySQL, wpdb
> constructor dies silently trying to
> $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword, true);
> Is that OK?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list