创建用户
CREATE USER 'test'@'localhost' IDENTIFIED BY '123456';
赋权
GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost'
GRANT ALL PRIVILEGES ON db.* TO 'test'@'localhost'
刷新权限
FLUSH PRIVILEGES
2023-02-17 20:29:38
创建用户
CREATE USER 'test'@'localhost' IDENTIFIED BY '123456';
赋权
GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost'
GRANT ALL PRIVILEGES ON db.* TO 'test'@'localhost'
刷新权限
FLUSH PRIVILEGES