How to Create a Admin User for A WordPress Site via MySQL (PHPMyAdmin)?

You need to run those below queries-

INSERT INTO `your-wp-database`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`, `display_name`) VALUES ('1000', 'your_username', MD5('Str0ngPa55!'), 'your_username', '[email protected]', '0', 'User Display Name');

INSERT INTO `your-wp-database`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1000', 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}');

INSERT INTO `your-wp-database`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1000', 'wp_user_level', '10');

But notice here your-wp-database is the name of your WordPress database, 1000 is your newly created user’s ID, [email protected] is the user email, the your_username is your user’s username, User Display Name is your newly created user’s display name and lastly Str0ngPa55! is the password of your newly created user.