-- 设置密码的难度
set global validate_password_policy=0;
set global validate_password_length=1;
-- 创建用户
CREATE USER 'crm-v3-toc'@'%' IDENTIFIED BY '123456';
-- 授权crm-v3-toc 给
GRANT ALL ON `crm-v3-toc`.* TO 'crm-v3-toc'@'%';
-- 授权全部数据库
GRANT ALL ON *.* TO 'crm-v3-toc'@'%';