创建用户
CREATE USER 'test'@'localhost' IDENTIFIED BY '123456';
赋权
GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost'
GRANT ALL PRIVILEGES ON db.* TO 'test'@'localhost'
刷新权限
FLUSH PRIVILEGES