mysql:给用户(账号)付权限方式
来源:互联网 发布:淘宝网加厚牛仔裤 编辑:程序博客网 时间:2024/09/21 08:55
解决办法 grant all privileges on *.* to joe@localhost identified by '1';
flush privileges;
拿 joe 1 登陆
附:
mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;
权限1,权限2,…权限n代表select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限。
当权限1,权限2,…权限n被all privileges或者all代替,表示赋予用户全部权限。
当数据库名称.表名称被*.*代替,表示赋予用户操作服务器上所有数据库所有表的权限。
用户地址可以是localhost,也可以是ip地址、机器名字、域名。也可以用’%'表示从任何地址连接。
‘连接口令’不能为空,否则创建失败。
mysql>grant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by ‘123′;
给来自10.163.225.87的用户joe分配可对数据库vtdc的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为123。
mysql>grant all privileges on vtdc.* to joe@10.163.225.87 identified by ‘123′;
给来自10.163.225.87的用户joe分配可对数据库vtdc所有表进行所有操作的权限,并设定口令为123。
mysql>grant all privileges on *.* to joe@10.163.225.87 identified by ‘123′;
给来自10.163.225.87的用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。
mysql>grant all privileges on *.* to joe@localhost identified by ‘123′;
给本机用户joe分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。
mysql>GRANT ALL privileges ON *.* TO root@'%' IDENTIFIED BY 'x5';
给root分配对所有数据库的所有表进行所有操作的权限,并设置口令为x5
- mysql:给用户(账号)付权限方式
- 给PL/SQL创建账号、密码和付权限
- 新建用户、付权限命令
- Mysql给用户赋权限
- mysql给用户赋予权限
- Mysql 付外部连接权限
- 【MySQL】创建用户,给用户分配权限
- mysql创建用户,给用户赋予权限
- 在sqlserver中,给新添加的用户付所有表的操作权限
- MYSQL里给用户加权限
- 给mysql用户进行远程连接权限
- mysql给用户添加查询权限
- 如何给mysql用户分配权限
- 给mysql用户重新设置权限后报错
- 20140429mysql给用户赋予所有权限
- 如何给mysql用户分配权限
- MySQL账号权限建议
- MYSQL 创建用户并给用户赋值对应数据库权限
- 当鼠标点击某一行,用jq获得该行的所有值
- 集群和分布式的区别
- Android中常用基本控件的使用方法和步骤(.txt)
- virturalbox 创建对象失败 明细:regdb_e_classnotreg
- link js重构心得
- mysql:给用户(账号)付权限方式
- [华为OJ--C++]021-汽水瓶
- 9异常
- OpenJudge-Noi 1775:采药(0-1背包问题)
- org.ini4j文档说明
- Nagios之基础理论与简单安装配置
- 两台服务器之间拷贝文件-scp方法
- eclipse:自动提示
- 一致性哈希算法