1.新增一个数据库用户(root默认不开启远程连接)
grant * on 数据库名称.表名称 to '账号'@'允许连接地址' identified by '密码';
2.远程连接指令
grant select,insert,update on app_db.* to '账号'@'允许连接地址' identified by '密码';
1.新增一个数据库用户(root默认不开启远程连接)
grant * on 数据库名称.表名称 to '账号'@'允许连接地址' identified by '密码';
2.远程连接指令
grant select,insert,update on app_db.* to '账号'@'允许连接地址' identified by '密码';