I still cannot migrate my MODx site after many hours to try. I’m really lost. :’(
Maybe the problem comes from conflicts between tables resulting from the MODx installation on the remote server and the tables imported from the local server. I can assume that it is necessary to preserve some tables from the remote installation. But then, how to handle the fact that the tables in the migrated database can have the same names ?
Another possible explanation is that the remote database (remDat) name and database usernames (datUser) are prefixed by the hosting account username (hostUser) and an underscore, so there are different from my local MODx site.
remote database : hostUser_remDat
rem. datab. user : hostUser_datUser
Here what I did :
1) Used the MySQL wizard to create the remote database and some user : hostUser_remDat , hostUser_datUser
2) Installed MODx remotely, using above data for the connection to the database.
For MODx admin name, I used datUser (without any prefix).
(I use the same admin name and password locally.)
3) Tried to import my database with phpMyAdmin :
got error duplicate entry for "datUser" in table remDat_active_users
4) Deleted user hostUser_datUser with the MySQL manager.
Created another user hostUser_anotherDatUser, so remote and imported users do not conflict.
(because of the error at step 3)
5) Dropped all remote tables (but not dropped the database),
resulting in an empty database.
(because of the error at step 3)
6) Tried again to import my database with phpMyAdmin
7) Tables seems imported (not sure if completely).
The duplicate entry error for "datUser" displayed again,

although there is only one user with the datUser name
in the imported database and no more datUser in the remote database.
Results :
1) The remote site displays :
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
2) The manager displays :
Failed to create the database connection!
. Please run the MODx install utility
After, I created user hostUser_datUser for MySQL again but this did not solve anything.
I wonder if all these problems can be due to the fact that the local and the remote databases do not have the same name as the remote one is prefixed with the hosting account name.
Any help would be much appreciated, especially step by step instructions letting know in which order you install the remote MODx and migrate the database. Thanks a lot.
I’m also very interested in knowing if the plugins and snippets installed during MODx setup must be exactly the same on the remote site and on the local site. (I’m interested in a minimal MODx on the remote site since I did not use all extensions.)