I had that message recently because my server now support mysqli. Since pg4wp rewrite “mysql_” into “wpsql_”, but not “mysqli_” to “wpsql_”, it was launching this error. So I added some code to wp-config.php : define(‘WP_USE_EXT_MYSQL’, true);
Is your server supporting mysqli?