Just follow the steps and access your WordPress site easily
Note: Suppose to you have access to WordPress database.
Step 1 – Go to your wp_users table and create a user with details or copy the existing user and replace the user_login,user_pass.
Note: password should be generated through this link http://scriptserver.mainframe8.com/wordpress_password_hasher.php
Step 2 – Next you have to make this user as admin by changing the ID column to 1 for temporary.
Step 3 – Next you go to WordPress admin link and put your new username & password and enjoy!.