(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, 8 months ago by
nlpro.
-
This reply was modified 2 years, 8 months ago by
nlpro.
-
This reply was modified 2 years, 8 months ago by
nlpro.
-
This reply was modified 2 years, 8 months ago by
nlpro.
-
This reply was modified 2 years, 8 months ago by
nlpro.