-- MySQL测试数据插入脚本 -- 连接到MySQL数据库: aigc -- 用户名: root, 密码: 177615 USE aigc; -- 删除现有测试数据(如果存在) DELETE FROM users WHERE username IN ('demo', 'admin', 'testuser', 'mingzi_FBx7foZYDS7inLQb', '15538239326'); -- 插入测试用户数据 INSERT INTO users (username, email, password_hash, role, points) VALUES ('demo', 'demo@example.com', 'demo', 'ROLE_USER', 100), ('admin', 'admin@example.com', 'admin123', 'ROLE_ADMIN', 200), ('testuser', 'testuser@example.com', 'test123', 'ROLE_USER', 75), ('mingzi_FBx7foZYDS7inLQb', 'mingzi@example.com', '123456', 'ROLE_USER', 25), ('15538239326', '15538239326@example.com', '0627', 'ROLE_USER', 50); -- 验证插入结果 SELECT username, email, role, points FROM users WHERE username IN ('demo', 'admin', 'testuser', 'mingzi_FBx7foZYDS7inLQb', '15538239326');