120511 21:11:23 [Note] Plugin 'FEDERATED' is disabled.
120511 21:11:23 InnoDB: The InnoDB memory heap is disabled
120511 21:11:23 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120511 21:11:23 InnoDB: Compressed tables use zlib 1.2.3
120511 21:11:23 InnoDB: Initializing buffer pool, size = 45.0M
120511 21:11:23 InnoDB: Completed initialization of buffer pool
120511 21:11:23 InnoDB: highest supported file format is Barracuda.
120511 21:11:24  InnoDB: Waiting for the background threads to start
120511 21:11:25 InnoDB: 1.1.8 started; log sequence number 1830061
120511 21:11:25 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
这是MySQL的错误日志,求高手帮忙啊!!

解决方案 »

  1.   

    启动的datadir写错了吧
    找到你的启动文件  看看
      

  2.   

    看一下具体mysql的错误日志,从中找到什么原因。
      

  3.   

    #Path to installation directory. All paths are usually resolved relative to this.
    basedir="C:/Program Files/MySQL/MySQL Server 5.5/"#Path to the database root
    datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.5/Data/"
    这个事my.ini文件里的datadir路径,在我的电脑里并没有错啊,在网上找了好长时间了,很多貌似和我一样的问题,但总有一点不同!!
      

  4.   

    Can't open and lock privilege tables: Table 'mysql.user' doesn't exist