DELETE FROM sys_role WHERE role_id = 1; INSERT INTO sys_role(role_id, role_name, role_code, remark) VALUES(1, '系统管理员', 'admin', '系统管理员'); DELETE FROM sys_role_resource WHERE role_id = 1; INSERT INTO sys_role_resource(role_id, resource_id) VALUES (1, -1), (1, 1), (1, 11), (1, 12); DELETE FROM sys_user WHERE user_id = 1; INSERT INTO sys_user(`user_id`, `login_name`, `password`, `user_name`) -- VALUES(1, 'admin', '48FBFB2C03ABA5577F9B3BC3970510E4', '系统管理员'); VALUES(1, 'admin', '48FBFB2C03ABA5577F9B3BC3970510E46B13D2C04584297AE22E15AF59CEFF1D', '系统管理员'); -- 密码是:12345678 DELETE FROM sys_user_role WHERE user_id = 1; INSERT INTO sys_user_role(user_id, role_id) VALUES(1, 1);