Appearance
原文1
CREATE USER 'remoteuser'@'%' IDENTIFIED BY 'password';
# 授予remoteuser用户对test数据库的全部权限 GRANT ALL ON test.* TO 'remoteuser'@'%';
如果是阿里云,腾讯云用户需要修改一下安全组,暴露一个非3306的端口,并且修改mysql的配置文件my.cnf
最后重启MySQL服务