MySQL受权表问题,请指教!!
我在设置受权表的时候碰到了问题。我为数据添加了一个用户(guest),在user表中我关闭了所有的权限,我只想让这个用户访问数据库dba,于是我就在db表中添加了用户和数据库的关联项。并且只受权select但是始终无法生效。(重启服务也是如此)以guest用户连接到服务器后打开数据库dba时出错mysql> use dba
ERROR 1044: Access denied for user: guest@%' to database 'dba'
受权表的设置如下:
user 表
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
01 Host: %
02 User: guest
03 password:
04 Select_priv: N
05 Insert_priv: N
06 Update_priv: N
07 Delete_priv: N
08 Create_priv: N
09 Drop_priv: N
10 Reload_priv: N
11 Shutdown_priv: N
12 Process_priv: N
13 File_priv: N
14 Grant_priv: N
15 References_priv: N
16 Index_priv: N
17 Alter_priv: N
18 Show_db_priv: N
19 Super_priv: N
20 Create_tmp_table_priv: N
21 Lock_tables_priv: N
22 Execute_priv: N
23 Repl_slave_priv: N
24 Repl_client_priv: N
25 ssl_type:
26 ssl_cipher:
27 x509_issuer:
28 x509_subject:
29 max_questions: 0
30 max_updates: 0
31 max_connections: 0
db 表
~~~~~~~~~~~~~~~~~~~~~~~~
01 Host: %
02 Db: dba
03 User: guest
04 Select_priv: Y
05 Insert_priv: N
06 Update_priv: N
07 Delete_priv: N
08 Create_priv: N
09 Drop_priv: N
10 Grant_priv: N
11 References_priv: N
12 Index_priv: N
13 Alter_priv: N
14 Create_tmp_table_priv: N
15 Lock_tables_priv: N
请高手指点
02 User: guest
03 User: music_guest
?????
不一样啊? 不好意思打错了,改回来了。
页:
[1]