How I migrated Drupal Forum replies to WordPress. Part 2

In the first part, we have reached the point where users and forum topics are imported. There are no forum replies yet. Before we start playing with MySQL part make a backup of the whole WordPress database in case you break something. And you should be at least a bit comfortable with SQL. Considering myself, I know just basics of SQL syntax, the other part is the logic and browsing internet if stuck. My SQL statements are very simple using only insert, select, where statements. This is the most basic structure and not always the best practice. But the logic behind is most obvious. Next part is to take care of the Drupal database source. If your Drupal database is on the same server, you can perform queries directly from it. This is how I’ve done this. But this adds an additional keep off the track while writing queries. You…