To add a WordPress admin user via MySQL, access your database using phpMyAdmin, navigate to the wp_users table, insert a new user record, and then add the user's capabilities to the wp_usermeta table.
Adding the User to wp_users Table:
Click on the wp_users table (or the table with your WordPress prefix, like wp_f88a3a_users).
Click the "Insert" tab.
Fill in the following fields:
user_login: The username for the new admin.
user_pass: The password for the new admin (select MD5 in the function dropdown).
user_email: The email address for the user.
user_status: Set to 0.
Click "Go" to insert the user.
Note the user id of the new user for the next steps.
Adding User Capabilities to wp_usermeta Table:
Click on the wp_usermeta table (or the table with your WordPress prefix, like wp_f88a3a_usermeta).
Click the "Insert" tab.
Fill in the following fields:
user_id: The ID of the new user (obtained from the wp_users table).
meta_key: wp_capabilities.
meta_value: a:1:{s:13:"administrator";s:1:"1";}.
Click "Go" to insert the capabilities metadata.
Repeat the above step (use same table) to set the user level to 10:
user_id: The ID of the new user.
meta_key: wp_user_level.
meta_value: 10.
Click "Go" to insert the user level.
Verify the New Admin:
Log out of your WordPress dashboard (if you are logged in).