日志一般在安装mysql的data目录下!

解决方案 »

  1.   

    应该不会,要想看的话要在my.ini文件中加入log=参数,如下:
    [mysqld]
    #Enter a name for the binary log. Otherwise a default name will be used.
    log-bin=
    #Enter a name for the query log file. Otherwise a default name will be used.
    log=
    #Enter a name for the error log file. Otherwise a default name will be used.
    log-error=
    #Enter a name for the update log file. Otherwise a default name will be used.
    log-update=
    修改后保存my.ini文件,然后重启mysql的服务后就可以在data文件夹目录下看到hostname.log.
      

  2.   

    对,
    应该写在 my.ini 配置文件里,