宝塔用户_asxqab 发表于 2024-10-6 09:34:31

【待反馈】数据库计划任务备份只有250b

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:免费版 9.0.0
系统版本:系统:Ubuntu 24
问题描述:数据库计划任务备份只有250b
相关截图(日志、错误):|-错误:备份文件大小异常,备份失败!|-mysqldump: Found option without preceding group in config file /etc/my.cnf at line 3!mysqldump: Fatal error in defaults handling. Program aborted!

大炮运维V587 发表于 2024-10-6 10:50:00

cat /etc/my.cnf
您好,您到服务器ssh终端里执行这个命令,看看返回什么信息?

宝塔用户_asxqab 发表于 2024-10-10 15:25:30

大炮运维V587 发表于 2024-10-6 10:50
您好,您到服务器ssh终端里执行这个命令,看看返回什么信息?

root@VM-4-10-ubuntu:~# cat /etc/my.cnf
#
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock


port            = 3306
socket          = /tmp/mysql.sock
expire_logs_days = 0
datadir = /www/server/data
default_storage_engine = InnoDB
skip-external-locking
key_buffer_size = 32M
max_allowed_packet = 100G
table_open_cache = 128
sort_buffer_size = 768K
net_buffer_length = 4K
read_buffer_size = 768K
read_rnd_buffer_size = 256K
myisam_sort_buffer_size = 8M
thread_cache_size = 16
query_cache_size = 16M
tmp_table_size = 32M
sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

explicit_defaults_for_timestamp = true
#skip-name-resolve
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535

log-bin=mysql-bin
binlog_format=mixed
server-id = 1
expire_logs_days = 30
slow_query_log=1
slow-query-log-file=/www/server/data/mysql-slow.log
long_query_time=3
#log_queries_not_using_indexes=on
early-plugin-load = ""


innodb_data_home_dir = /www/server/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /www/server/data
innodb_buffer_pool_size = 128M
innodb_log_file_size = 64M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_max_dirty_pages_pct = 90
innodb_read_io_threads = 2
innodb_write_io_threads = 2


user=root
password= "Z8Fw5eaNM82SEW6r"
quick
max_allowed_packet = 500M


no-auto-rehash


key_buffer_size = 32M
sort_buffer_size = 768K
read_buffer = 2M
write_buffer = 2M


interactive-timeout
root@VM-4-10-ubuntu:~# ^C

宝塔用户_asxqab 发表于 2024-10-10 15:31:57

大炮运维V587 发表于 2024-10-6 10:50
您好,您到服务器ssh终端里执行这个命令,看看返回什么信息?

管理员大大:
我现在就遇到了两个问题:
1.数据库备份的时候只有几十或者几百B;
2./www/server/data文件下内生成了大量的mysql-bin.00000*请问如何禁止生成这种文件呢?3天不删除硬盘就直接满了。

宝塔用户_asxqab 发表于 2024-10-12 11:25:27

大炮运维V587 发表于 2024-10-6 10:50
您好,您到服务器ssh终端里执行这个命令,看看返回什么信息?

大哥能帮忙看下嘛?

运维技术阿闯 发表于 2024-10-30 11:06:31

宝塔用户_asxqab 发表于 2024-10-10 15:31
管理员大大:
我现在就遇到了两个问题:
1.数据库备份的时候只有几十或者几百B;


mysql-bin.0000这个是二进制日志,数据库每天备份一下,可以删除之前的二进制日志
页: [1]
查看完整版本: 【待反馈】数据库计划任务备份只有250b