grant select,delete,update on localhost.library to 'exp04'@'localhost' identified by '12345';为什么执行这条语句会报错呢:
Table 'localhost.library' doesn't exist

解决方案 »

  1.   

    grant select,delete,update on library to 'exp04'@'localhost' identified by '12345';
    参考一下手册中的语法说明。
    MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
      

  2.   

    我这样弄过哈  但是报错:No database selected……
      

  3.   

    show databases ;贴出来看一下。
      

  4.   

    root账户登录localhost后有“exp03”“exp04","homework3",information_schema","library","mysql"这些个数据库
    然后library下有9个表  
    你要的信息是这些么
      

  5.   

    grant select,delete,update on library.* to 'exp04'@'localhost' identified by '12345';