<?php
include __DIR__ . "/wp-load.php";
global $wpdb;
if( $wpdb->update($wpdb->prefix . "users",["user_pass" => "生成的WordPress数据库密码"],["user_login" => "您的WordPress登录帐号"]) )
{
echo "WordPress数据库密码重置成功!";
exit();
}
echo "WordPress修改密码失败!";
exit();
?>