(The procedure described below is not yet finished. So please wait implementing it till itβs finished)
Ok, before we can start and attempt to reverse the changes made in the database by the βChange User ID 1β tool, we need to determin the new ID assigned to your administrator user. Easiest method is to look at the data in the wp_users table using a tool like phpMyAdmin.
Additionally youβll need to write down/make a note of all the data associated with that ID value in the wp_users table.
(Itβs probably also a good idea to make a database backup before proceeding).
We are going to need the collected data in the 6 SQL statements below:
delete from wp_users where ID=?;
Where ? needs to be substituted with the new ID value.
insert into wp_users ('ID', 'user_login', 'user_pass', 'user_nicename', 'user_email', 'user_url', 'user_registered', 'user_activation_key', 'user_status', 'display_name') values ('1', β¦);
Where β¦ needs to be substituted with the 9 correct comma separated (string) values.
update wp_posts set post_author=1 where post_author=?;
update wp_usermeta set user_id=1 where user_id=?;
update wp_comments set user_id=1 where user_id=?;
update wp_links set link_owner=1 where link_owner=?;
Where ? needs to be substituted with the new ID value.
Thatβs it for the 6 SQL commands.
But we are not there yet. Work in progress β¦
-
This reply was modified 2 years, 5 months ago by nlpro.
-
This reply was modified 2 years, 5 months ago by nlpro.
-
This reply was modified 2 years, 5 months ago by nlpro.
-
This reply was modified 2 years, 5 months ago by nlpro.
-
This reply was modified 2 years, 5 months ago by nlpro.