WordPress.org

Ready to get started?Download WordPress

Forums

FG Joomla to WordPress
[resolved] MYSQL_ATTR_INIT_COMMAND (6 posts)

  1. saevare
    Member
    Posted 1 year ago #

    Hello.
    I bought FG Joomla To WordPress Premium and i'm trying to import database from Joomla 1.0.15 to WP 3.5 and i get this error:
    PHP Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /usr/foo/bar/wordpress/wp-content/plugins/fg-joomla-to-wordpress-premium/fg-joomla-to-wordpress.php on line 341, referer: http://localhost/wordpress/wp-admin/admin.php?import=fgj2wp
    My version of PHP is
    PHP 5.4.10
    And my MySQL is
    mysql-server-5.5.29
    Running on FreeBSD 9

    http://wordpress.org/extend/plugins/fg-joomla-to-wordpress/

  2. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    You have to enable PDO in php.ini.

  3. saevare
    Member
    Posted 1 year ago #

    And by that you are talking about extension=php_pdo_mysql.dll right? witch is enabeld. But this is not enabeld
    ;extension=php_pdo_firebird.dll
    ;extension=php_pdo_oci.dll
    ;extension=php_pdo_odbc.dll
    ;extension=php_pdo_pgsql.dll
    ;extension=php_pdo_sqlite.dll

  4. saevare
    Member
    Posted 1 year ago #

    My bad, i mean extension=pdo_mysql.so :)

  5. saevare
    Member
    Posted 1 year ago #

    Sorry for this post, i just haf to install /usr/ports/databases/php5-pdo_mysql and put extension=pdo_mysql.so in php.ini, it is working :D

  6. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.