Hi.
This is the error message I get after starting any import (avatars, forums) from the Migrate UI:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'SITENAME'@'localhost' for table 'migrate_map_phpbbforums': SELECT f.forum_id AS forum_id, f.parent_id AS parent_id, f.forum_name AS forum_name, f.forum_desc AS forum_desc, f.forum_type AS forum_type, map.destid1 AS migrate_map_destid1, map.needs_update AS migrate_map_needs_update FROM {forums} f LEFT OUTER JOIN {SITENAME_phpbb_test.migrate_map_phpbbforums} map ON forum_id = map.sourceid1 WHERE (forum_type <> :db_condition_placeholder_0) AND( (map.sourceid1 IS NULL ) OR (map.needs_update = :db_condition_placeholder_1) ) ORDER BY parent_id ASC, right_id ASC, left_id ASC; Array ( [:db_condition_placeholder_0] => 2 [:db_condition_placeholder_1] => 1 ) in MigrateSourceSQL->performRewind() (line 318 of /home/SITENAME/public_html/drupal/drupal7/sites/all/modules/migrate/plugins/sources/sql.inc).
Any ideas?
Comments
Comment #1
mbutelman commentedUpdate:
after moving the tables to the local database and removing the table prefix (phpbb_) I got another error:
Disabling and uninstalling Migrate and phpbb2drupal modules, and afterwards disabling and reenabling first the forum module and then Migrate and phpbb2drupal fixed this error.
Comment #2
adammaloneThis error could be due to the settings within phpbb2drupal settings.
You must untick the box 'use local settings' for it not to query the drupal database. Regarding the issue with the table prefix see this issue.
Comment #3
Z2222 commentedEDIT: sorry, I was on the wrong thread. Reposted here:
https://drupal.org/node/1483564#comment-5807056
Comment #4
ghankstef commentedI worked around this by dumping the phpbb db
opening the dump file in vim and doing a search and replace and saving the file like this
dropped the database and recreated it
then reimport the db.
Then it worked fine.
Comment #5
JeremyFrench commentedI think this is a dupe of #1483564: Table prefix is prefixing the database solution may be to make sure you are using latest drupal (7.14+) and migrate.