Sometime the Admin user disappeared without leaving any access to your website. You could create another admin user to access your backend using the following codes:

INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`)
VALUES (‘newadmin’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’);

INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);

INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);

 

Difficulty level: Expert
Recurring Risk: No

 Want us to do this for you? It takes about 1 hour depending on the size of site.
Skill level required – Expert level
Our rate for this job is $50 per hour ( min. 2 hours)
Call us at: +65 6511 4585 (Office hours)
Message us at: +65 9816 0802 (24 hours)
Email us at: [email protected]
Visit our website at: www.dyontech.com