Files
JGE-RS-SL-WEB/backend/database/update-admin-password.sql

11 lines
318 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 更新管理员密码
-- 用户名admin
-- 密码admin123456
-- 新的bcrypt哈希值10轮
UPDATE admin_users
SET password_hash = '$2b$10$t1yFXiPAfHUJONTjxnFYae3Q4petGiD3swtAJC2mtYNJcujxu0raa'
WHERE username = 'admin';
-- 验证更新结果
SELECT id, username, password_hash, role FROM admin_users;