我的host表 是空的,怎么让他产生数据!
今天参加搜狐畅游校园招聘的笔试考到了mysql授权相关的表.... 不会啊..... 唉...

解决方案 »

  1.   

    1) 直接INSERT
    2) GRANT 。  ON db1.* 
      

  2.   

    版主啊... 不行啊...drop user monty@localhost;
    grant all privileges on test.* to [email protected] 
    identified by '123456' with grant option;
    select * from mysql.host;
      

  3.   

    The host table is not affected by the GRANT or REVOKE statements, so it is unused in most MySQL installations. If you modify it directly, you can use it for some specialized purposes, such as to maintain a list of secure servers on the local network that are granted all privileges. 
    只能手工 insert 了