fengdie 发表于 2024-7-2 22:05:49

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

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.1.0
系统版本:centos7
问题描述:/www/server/data/localhost.localdomain.err 文件占用磁盘空间18G
相关截图(日志、错误):
不知道这个文件是干什么的?

宝塔运维-河妖 发表于 2024-7-2 22:09:17

您好 这个是数据库的错误日志 如果您不需要查看的的话 可以执行这条命令进行清理
cat /dev/null > /www/server/data/localhost.localdomain.err
请注意不要输入错误 不然可能引起其他错误

fengdie 发表于 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文件

fengdie 发表于 2024-7-5 02:41:33

运维技术阿闯 发表于 2024-7-4 17:45
您好,这个具体需要查看一下数据库有没有错误信息
/www/server/data/目录下的.errer文件 ...

一直显示这个
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-07-04T12:19:30.580834Z 65307198 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-07-04T12:19:30.619737Z 65307199 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-07-04T12:19:30.623336Z 65307200 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-07-04T12:19:30.671425Z 65307201 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-07-04T12:19:30.674613Z 65307202 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-07-04T12:19:30.735547Z 65307203 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

fengdie 发表于 2024-7-5 02:41
一直显示这个

您好,这些警告信息表明你的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是用户的密码。
页: [1]
查看完整版本: 【待反馈】localhost.localdomain.err文件占用空间