mysql访问授权
2013-01-28 15:54
274 查看
在安装mysql的机器上运行:
单台授权:
注意授权后必须flush privileges;否则无法立即生效。
多台授权:
//赋予任何主机访问数据的权限
mysql>
如果用以下则会报错:(上面是新建用户)
//修改生效
d:\mysql\bin\>mysql -h localhost -u root
单台授权:
grant all privileges on *.* to 'root'@'10.24.23.55' identified by '1234' with grant option;
注意授权后必须flush privileges;否则无法立即生效。
多台授权:
//赋予任何主机访问数据的权限
mysql>
grant all privileges on *.* to 'root'@'%' identified by '1234' with grant option;
如果用以下则会报错:(上面是新建用户)
grant all privileges on *.* to 'root'@'%' with grant option; ----->ERROR 1133 (42000): Can't find any matching row in the user table
//修改生效
mysql> flush privileges;
相关文章推荐
- mysql创建新用户并授权访问操作该数据库
- MySQL 数据库远程访问授权
- mysql授权远程访问
- MYSQL授权指定权限指定IP访问指定库
- MySQL管理命令、备份与恢复、授权远程访问
- 这几天用到的mysql语句(本地-远程备份、库授权访问)
- luov之MySQL授权访问
- MySQL添加用户与授权(dbforge studio mysql)图文详解,远程访问
- linux 下MySQL快速安装和client访问授权
- mysql新增授权给特定IP访问的用户
- mysql 远程访问授权
- 配置mysql指定的ip授权访问
- MySQL 数据库远程访问授权
- mysql绿色版安装步骤,忘记密码时修改密码,给其它用户授权,使得同网段的用户可访问你的数据库
- Mysql 授权访问
- 已解决:mysql无法远程访问10061错误,各种方式授权后也无效(ubuntu 16.04LTS mysql 5.7.13)
- Mysql 授权IP访问
- MYSQL远程访问,授权IP等常用命令
- lampp(xampp)在linux中的安装和mysql的远程访问授权。
- 授权指定ip访问mysql 服务器