Home  >  Article  >  Database  >  查看MySQL的错误日志的方法

查看MySQL的错误日志的方法

WBOY
WBOYOriginal
2016-06-07 18:02:42633browse

我们经常在运行MySQL时会出一些错误,也经常被这些错误搞得晕头转向。当然解决这些问题的首要任务是找到日志信息。

MySQL的错误信息是在data目录下的,且文件名为.err(指的是主机名),但由于每个人安装的环境不一样,或你忘记了data目录的所在位置,你可以通过下面方法查找。

#hostname //获得主机名

#find / -name .err
.....

#cd ...

#vi .err
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn