我想增加个用户tanwei,但是这用户只能访问这特定数据库test02 我是如下操作的,可是错了,哪位帮我看看,谢谢了。
mysql>grant select,update,insert,delete on test02.* to [email protected] identified by "1234567";
mysql>update user set host = '%' where user = 'tanwei';//将host字段的值改为%,可在任何客户端机器上能以tanwei用户登录到mysql服务器
如上,建立用户tanwei,增加了他的权限 # mysql -u tanwei -p
//输入密码
# show databases;
可是并没有显示test02,现在这用户还是访问不了test02数据库。现在用这tanwei用户登陆进去,里面连mysql这系统表也不能访问。 哪位高手指点我下,谢谢了
谢谢!~~~~
mysql>grant select,update,insert,delete on test02.* to [email protected] identified by "1234567";
mysql>update user set host = '%' where user = 'tanwei';//将host字段的值改为%,可在任何客户端机器上能以tanwei用户登录到mysql服务器
如上,建立用户tanwei,增加了他的权限 # mysql -u tanwei -p
//输入密码
# show databases;
可是并没有显示test02,现在这用户还是访问不了test02数据库。现在用这tanwei用户登陆进去,里面连mysql这系统表也不能访问。 哪位高手指点我下,谢谢了
谢谢!~~~~
解决方案 »
- mysql存储过程中的游标取部出值
- mysqld-nt的问题,有时开机显示这个进程,mysql就不正常,有时开机显示mysqld.exe进程就正常了,纠结,请教各位
- sql语句在mysql管理工具中查不出数据,在cmd.exe命令下可以查的出,什么原因?
- 如何知道一个MySQl数据库Server当前的负载能力,或者Cpu 内存空闲多少?
- MySql无法启动的问题(非常见)。
- 关于INSERT问题
- 取各个字段值里以 字母开头后的值。
- selsct问题
- 一个令人头疼的错误:can't open **.MYD , error 126
- datetime timestamp查询性能咨询
- MYSQL 如何获取表主键
- 求助,Mysql中datetime错误
grant all privileges on *.* to tanwei@'%' identified by '1234567' with grant option;
update user set password=old_password('1234567') where user='tanwei';
grant all privileges on test2.* to tanwei@'%' identified by '1234567' with grant option;
update user set password=old_password('1234567') where user='tanwei';还是跟之前的效果一样,还是不能访问数据库test2,是什么原因呢???谢谢
谢谢!