island
Active member
Working on importing a 20-year old forum, an issue is that the forum previously did allow more than one username with the same email address. (one reason being members who posted on behalf of a company, who then wished to post a question or comment that didn't represent the view of the company.) In any case, now I need to deal with these since xenforo doesn't allow any duplicate email addresses. I can't simply merge them, as in the above scenario it would be inappropriate as it could merge the personal into the company member name. So I need to go one by one and decide what to do with them, merge, or substitute email address.
I tried with the import script, but after modifying ~200, selecting merge or modify, the script gave me an error when I hit submit at the end and trying again it was gone. The humanity
So second try, is to go through using phpmyadmin.
but this doesn't allow me to click to edit in phpmyadmin.
Can anyone help me with an sql query I can use to generate an editable screen in phpmyadmin so I can manually modify any duplicated email addresses (preferably giving me the second username with the same email address where I can click it to edit that duplicate email address.)
Thanks!
I tried with the import script, but after modifying ~200, selecting merge or modify, the script gave me an error when I hit submit at the end and trying again it was gone. The humanity
So second try, is to go through using phpmyadmin.
Code:
select userid, email, count(email) as myCount from user group by email having myCount > 1 order by email;
but this doesn't allow me to click to edit in phpmyadmin.
Can anyone help me with an sql query I can use to generate an editable screen in phpmyadmin so I can manually modify any duplicated email addresses (preferably giving me the second username with the same email address where I can click it to edit that duplicate email address.)
Thanks!
Last edited: