centos mariadb(mysql)远程连接

来源:互联网 发布:软件测试 英文翻译 编辑:程序博客网 时间:2024/06/07 02:13

1.新增一个数据库用户(root默认不开启远程连接)

grant *  on 数据库名称.表名称 to '账号'@'允许连接地址' identified by '密码';

2.远程连接指令

grant select,insert,update on app_db.* to '账号'@'允许连接地址' identified by '密码';

0 0
原创粉丝点击