Lost admin password but have access to wp-config.php. Can I create a new admin user?

[ad_1]

Sorry in advance for being stupid … I copied a client’s site to make a local instance of it to have a look around. They created an admin user for me, and I changed the password, but forgot to save it. I have created the local version of the site, but no longer have my login credientials for wp-admin.

The site won’t send mail to allow me to rest my password, and I can’t install an SMTP plugin as I can’t get access to the dashboard.

I have access to wp-config.php (along with every other file). Can I somehow use that to get admin access? I figure there’s a simple solution, but it’s beyond me! TIA.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer