0

a hacker put value "admin" into all user_login fields. i need to copy user_nicename value into the user_login so users can login. is there a SQL command i can run to do this task in bulk, as their 1000s of users and doing manually would a hassle. kindly help if you can. thanks !

2

Run the following SQL query in PHPMyAdmin or similar.

UPDATE wp_users SET user_login = user_nicename;

wp_users is the table for users (make sure it matches yours)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.