当前位置:论坛首页 > Linux面板 > 求助

【待反馈】localhost.localdomain.err文件占用空间

发表在 Linux面板2024-7-2 22:05 [复制链接] 5 951

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.1.0

系统版本:centos7

问题描述:/www/server/data/localhost.localdomain.err 文件占用磁盘空间18G

相关截图(日志、错误):

不知道这个文件是干什么的?
使用道具 举报 只看该作者 回复
发表于 2024-7-2 22:09:17 | 显示全部楼层
您好 这个是数据库的错误日志 如果您不需要查看的的话 可以执行这条命令进行清理  
  1. cat /dev/null > /www/server/data/localhost.localdomain.err
复制代码

请注意不要输入错误 不然可能引起其他错误
使用道具 举报 回复 支持 反对
发表于 2024-7-4 15:54:06 | 显示全部楼层
宝塔运维-河妖 发表于 2024-7-2 22:09
您好 这个是数据库的错误日志 如果您不需要查看的的话 可以执行这条命令进行清理  

请注意不要输入错误 不 ...

清空之后,这个文件每天20M左右在增长,这个是什么错误导致的?
使用道具 举报 回复 支持 反对
发表于 2024-7-4 17:45:11 | 显示全部楼层
fengdie 发表于 2024-7-4 15:54
清空之后,这个文件每天20M左右在增长,这个是什么错误导致的?

您好,这个具体需要查看一下数据库有没有错误信息
/www/server/data/目录下的.errer文件
使用道具 举报 回复 支持 反对
发表于 2024-7-5 02:41:33 | 显示全部楼层
运维技术阿闯 发表于 2024-7-4 17:45
您好,这个具体需要查看一下数据库有没有错误信息
/www/server/data/目录下的.errer文件 ...

一直显示这个
  1. [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  2. 2024-07-04T12:19:30.580834Z 65307198 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  3. 2024-07-04T12:19:30.619737Z 65307199 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  4. 2024-07-04T12:19:30.623336Z 65307200 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  5. 2024-07-04T12:19:30.671425Z 65307201 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  6. 2024-07-04T12:19:30.674613Z 65307202 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
  7. 2024-07-04T12:19:30.735547Z 65307203 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-7-15 09:16:01 | 显示全部楼层

您好,这些警告信息表明你的MySQL服务器正在使用mysql_native_password认证插件,该插件已经被标记为弃用,并将在未来的MySQL版本中移除。MySQL推荐使用caching_sha2_password作为更安全的认证插件

你可以修改现有用户的认证插件,将其从mysql_native_password更改为caching_sha2_password。这可以通过以下SQL命令完成:
ALTER USER 'username'@'host' IDENTIFIED WITH caching_sha2_password BY 'password';
其中username是数据库用户名,host是用户连接数据库时使用的主机名(例如localhost、%等),password是用户的密码。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表