-- 创建用户 CREATE USER ‘dev‘@‘%‘ IDENTIFIED BY ‘dev‘; -- 赋权 GRANT ALL PRIVILEGES ON *.* TO ‘dev‘@‘%‘; GRANT ALL PRIVILEGES ON db.* TO ‘dev‘@‘%‘; -- 刷新权限 FLUSH PRIVILEGES;
2022-10-06 20:31:40
-- 创建用户 CREATE USER ‘dev‘@‘%‘ IDENTIFIED BY ‘dev‘; -- 赋权 GRANT ALL PRIVILEGES ON *.* TO ‘dev‘@‘%‘; GRANT ALL PRIVILEGES ON db.* TO ‘dev‘@‘%‘; -- 刷新权限 FLUSH PRIVILEGES;