a-cloud-all/sql/privileges.sql

8 lines
298 B
SQL
Raw 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.

-- 创建数据库用户 ylcx允许从任何地址连接
CREATE USER IF NOT EXISTS 'ylcx'@'%' IDENTIFIED BY 'Tuoheng@2025';
-- 授予 ylcx 用户对 wvp 数据库的常用操作权限
GRANT SELECT, INSERT, UPDATE, DELETE ON wvp.* TO 'ylcx'@'%';
-- 刷新权限使其生效
FLUSH PRIVILEGES;