Is there a way to find email address of a deleted user?
Announcement
Collapse
No announcement yet.
Is there a way to find email address of a deleted user?
Collapse
X
-
You need to search the user table of your backup. Their email address is stored there if the user still exists.Comment
-
Can you explain exactly what you are trying to do? You have a deleted user, now there is a new user account and you want to move the posts from the old (deleted) account to the new one? Is that right?Comment
-
Run these MySQL queries. Change X to their old userid and Y to their new userid.
Code:UPDATE post SET userid = [color=green]Y[/color] WHERE userid = [color=blue]X[/color]; UPDATE thread SET postuserid = [color=green]Y[/color] WHERE postuserid = [color=blue]X[/color];
Comment
-
If you don't have phpMyAdmin installed on your server (or don't know where it is), you can run queries in the Admin CP -> Maintenance -> Execute SQL Query. If you are given a message saying that you are not authorized to run MySQL queries, you need to give yourself this permission by editing your includes/config.php file:
PHP Code:// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '';
PHP Code:// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '1';
Comment
-
Here right ?
// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = 'username';
**** One more thing, the old and the new usernames are the same
Thank you!
- - - Updated - - -
ah ok
user ID, the number
OK
- - - Updated - - -
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE thread SET postuserid = dunkan77 WHERE postuserid = dunkan77' at line 2Comment
-
By userid, I mean the number for the queries too. Find their old userid in your backup and their new userid in your current database.Comment
Related Topics
Collapse
-
by dustoff99My test user is stuck in "Users Awaiting Email Confirmation" status - I have Verify Email Address in Registration set to YES, but I never received an email. What am I missing?
-
Channel: Support Issues & Questions
Mon 16 Sep '13, 4:13pm -
Comment