Answers.Body: <p>In case it helps anyone, this is what I did:</p>
  
  <p>Initial set-up:<br/>
  - a working Joomla site, with Civicrm and Joomla tables in the same database<br/>
  - a separate installation of Wordpress on the same server (articles and static content already imported from the Joomla site and redirects set up as required)</p>
  
  <p>Aim: migrate the Joomla Civicrm tables and data to the Wordpress installation. In this case we chose to do it without moving the Civicrm tables, for simplicity.</p>
  
  <p>Result: Wordpress tables and Civicrm tables are in two separate databases</p>
  
  <ol>
  <li>Backup Joomla Civicrm tables or the whole database.</li>
  <li>Make a note of:<br/>
  
  <ul>
  <li>Civicrm version number in Joomla Civicrm<br/></li>
  <li>what components and extensions you have installed in Joomla Civicrm<br/></li>
  <li>any user permissions in Joomla Civicrm (if you use permissions).</li>
  </ul></li>
  <li>Install Civicrm in Wordpress (check version is same as Joomla Civicrm).</li>
  <li>Install/remove Civicrm components to match the Joomla Civicrm.</li>
  <li>Install any Civicrm extensions (check versions) to match Joomla Civicrm.</li>
  <li>Export data (should be just one row) from Wordpress Civicrm table civicrm_uf_match. Disable foreign key checks just in case.</li>
  <li>In the Joomla Civicrm database, make a copy of table civicrm_uf_match (in case you need to revert to Joomla).</li>
  <li>In the Joomla Civicrm database, truncate the table civicrm_uf_match and import the data exported from Wordpress Civicrm table. Preferably disable foreigh key checks.</li>
  <li>Edit the Wordpress civicrm.settings.php file (by default it's in wp-content/uploads). Change CIVICRM_UF_DSN and CIVICRM_DSN to point to the Joomla database.</li>
  <li>I also edited the row 'userFrameworkUsersTableName' in the table civicrm_setting, to change joomla-table-prefix_users to wp-table-prefix_users, but I don't know if this is necessary.</li>
  <li>You should now be able to access the 'old' Civicrm tables through Wordpress.</li>
  <li>Civicrm->Administer->Users and permissions->Synchronise Users to Contacts</li>
  </ol>
  
  <p>That's it. There's a bit of tidying up to do (see below), but at this stage you can still easily revert to Joomla if necessary by replacing the table civicrm_uf_match with the copy, and by reversing steps 9 and 10.</p>
  
  <ol start="13">
  <li>Tidy up: manually set up Civicrm user permissions to correspond to the old Joomla setup. Add any missing users. I had already used the <a href="https://www.fredericgilles.net/fg-joomla-to-wordpress/" rel="nofollow noreferrer">FG Migrate Joomla to Wordpress</a> plugin to migrate users and articles from Joomla.</li>
  <li>Tidy up: drop all the Joomla tables (and any other non-civicrm tables) from the Joomla database.</li>
  <li>Tidy up: drop the civicrm tables from the Wordpress database.</li>
  </ol>
  
  <p>Comments/corrections welcome.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-05T11:09:38.343Z
Answers.LastActivityDate: 2020-04-09T14:14:24.427Z
Answers.LastEditDate: 2020-04-09T14:14:24.427Z
Answers.UserDisplayName: Jern
Answers.Body: <p>For the question about Joomla (users and permission), ask the wordpress or joomla communities.</p>
  
  <p>For the migration of civicrm itself, it should be fairly easy: just copy the civicrm database (or the tables civicrm_* if they are in the same database than the joomla site)</p>
  
  <p>Check on civicrm.settings.php see if you have a mention of joomla and replace it by wordpress and you should be almost there</p>
  
  <p>You might have to manually change how the drupal users are mapped to the civicrm contacts, unless you do manage to keep the same ids for joomla and civi</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-29T17:13:17.320Z
Answers.LastActivityDate: 2016-02-29T17:15:03.963Z
Answers.LastEditDate: 2016-02-29T17:15:03.963Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>Re: civicrm.settings.php mentioned above, since you installed from WP, you shouldn't need to worry about Joomla there.  What version of CiviCRM did you install in WP, the latest? If so, the schema has changed a good bit from 3.4.8!  It might be best if you can update/upgrade CiviCRM to * (whatever version you are asked to use) in (a copy of) the Joomla site, and only afterwards, move your CiviCRM database into the WP- civicrm one.  The upgrade can take some time, and present its own challenge.
    There's a table in CiviCRM  syncing WP defined users and CiviCRM users, civicrm_uf_match.  The users should exist as 'contacts' in civicrm, and the email address is the uf_name, or identifier, used to match users in WP and CiviCRM. If you have already created users or data in the 'new' CiviCRM database with WP, save that database and, after you do the upgrade, try changing the connection info/credentials in the WP install to point to it.
  Go to 'CiviCRM' from WP (it looks like another plugin) and the user data <em>should</em> automatically get synced, you can verify by looking at the uf_match table.  </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T21:47:21.923Z
Answers.LastActivityDate: 2016-04-29T21:47:21.923Z
Answers.UserDisplayName: Lesley Evensen
Body: <p>I don't even know where to start. I have been tasked with migrating an older version of CiviCRM (3.4.8) on Joomla 1.5 to a newer version of CiviCRM on Wordpress. I got a fresh install of CiviCRM done on Wordpress 4.4, but I'm not sure where to go from here. I'm not familiar with Joomla (this is not my website), so please be very specific. I need everything (users, customizations, whatever else) moved over without having to delete anything on the current site.</p>
  
Tags: <wordpress><joomla><import>
Title: Migrate CiviCRM from Joomla to Wordpress
ThreadText: # Migrate CiviCRM from Joomla to Wordpress
  
  (Asked by: username_0 on 2016-02-29)
  
  I don't even know where to start. I have been tasked with migrating an older version of CiviCRM (3.4.8) on Joomla 1.5 to a newer version of CiviCRM on Wordpress. I got a fresh install of CiviCRM done on Wordpress 4.4, but I'm not sure where to go from here. I'm not familiar with Joomla (this is not my website), so please be very specific. I need everything (users, customizations, whatever else) moved over without having to delete anything on the current site.
  
  **Tags:** wordpress, joomla, import
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2020-04-05. Score: 5
  
  In case it helps anyone, this is what I did:
  
  Initial set-up:  
  - a working Joomla site, with Civicrm and Joomla tables in the same database  
  - a separate installation of Wordpress on the same server (articles and static content already imported from the Joomla site and redirects set up as required)
  
  Aim: migrate the Joomla Civicrm tables and data to the Wordpress installation. In this case we chose to do it without moving the Civicrm tables, for simplicity.
  
  Result: Wordpress tables and Civicrm tables are in two separate databases
  
  1. Backup Joomla Civicrm tables or the whole database.
  2. Make a note of:  
     * Civicrm version number in Joomla Civicrm
     * what components and extensions you have installed in Joomla Civicrm
     * any user permissions in Joomla Civicrm (if you use permissions).
  3. Install Civicrm in Wordpress (check version is same as Joomla Civicrm).
  4. Install/remove Civicrm components to match the Joomla Civicrm.
  5. Install any Civicrm extensions (check versions) to match Joomla Civicrm.
  6. Export data (should be just one row) from Wordpress Civicrm table civicrm\_uf\_match. Disable foreign key checks just in case.
  7. In the Joomla Civicrm database, make a copy of table civicrm\_uf\_match (in case you need to revert to Joomla).
  8. In the Joomla Civicrm database, truncate the table civicrm\_uf\_match and import the data exported from Wordpress Civicrm table. Preferably disable foreigh key checks.
  9. Edit the Wordpress civicrm.settings.php file (by default it's in wp-content/uploads). Change CIVICRM\_UF\_DSN and CIVICRM\_DSN to point to the Joomla database.
  10. I also edited the row 'userFrameworkUsersTableName' in the table civicrm\_setting, to change joomla-table-prefix\_users to wp-table-prefix\_users, but I don't know if this is necessary.
  11. You should now be able to access the 'old' Civicrm tables through Wordpress.
  12. Civicrm->Administer->Users and permissions->Synchronise Users to Contacts
  
  That's it. There's a bit of tidying up to do (see below), but at this stage you can still easily revert to Joomla if necessary by replacing the table civicrm\_uf\_match with the copy, and by reversing steps 9 and 10.
  
  13. Tidy up: manually set up Civicrm user permissions to correspond to the old Joomla setup. Add any missing users. I had already used the [FG Migrate Joomla to Wordpress](https://www.fredericgilles.net/fg-joomla-to-wordpress/) plugin to migrate users and articles from Joomla.
  14. Tidy up: drop all the Joomla tables (and any other non-civicrm tables) from the Joomla database.
  15. Tidy up: drop the civicrm tables from the Wordpress database.
  
  Comments/corrections welcome.
  
  
  ---
  
  ### Answer by username_2 on 2016-02-29. Score: 2
  
  For the question about Joomla (users and permission), ask the wordpress or joomla communities.
  
  For the migration of civicrm itself, it should be fairly easy: just copy the civicrm database (or the tables civicrm\_\* if they are in the same database than the joomla site)
  
  Check on civicrm.settings.php see if you have a mention of joomla and replace it by wordpress and you should be almost there
  
  You might have to manually change how the drupal users are mapped to the civicrm contacts, unless you do manage to keep the same ids for joomla and civi
  
  
  ---
  
  ### Answer by username_3 on 2016-04-29. Score: 0
  
  Re: civicrm.settings.php mentioned above, since you installed from WP, you shouldn't need to worry about Joomla there. What version of CiviCRM did you install in WP, the latest? If so, the schema has changed a good bit from 3.4.8! It might be best if you can update/upgrade CiviCRM to \* (whatever version you are asked to use) in (a copy of) the Joomla site, and only afterwards, move your CiviCRM database into the WP- civicrm one. The upgrade can take some time, and present its own challenge.
  There's a table in CiviCRM syncing WP defined users and CiviCRM users, civicrm\_uf\_match. The users should exist as 'contacts' in civicrm, and the email address is the uf\_name, or identifier, used to match users in WP and CiviCRM. If you have already created users or data in the 'new' CiviCRM database with WP, save that database and, after you do the upgrade, try changing the connection info/credentials in the WP install to point to it.
  Go to 'CiviCRM' from WP (it looks like another plugin) and the user data *should* automatically get synced, you can verify by looking at the uf\_match table.
  
  
  ---
  
  