[ERROR] [MY-010958] [Server] Could not open log file.[MY-010041] [Server] Can‘t init tc log

  手欠作死删了日志,然后启动就尴尬了:

  [root@chengyu ~]# vim /home/mysql8/data/chengyu.err

mysqld: File './binlog.018922' not found (OS errno 2 - No such file or directory)
2020-07-27T08:03:36.449918Z 0 [ERROR] [MY-010958] [Server] Could not open log file.
2020-07-27T08:03:36.450273Z 0 [ERROR] [MY-010041] [Server] Can't init tc log
2020-07-27T08:03:36.450778Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-07-27T08:03:38.019818Z 0 [System] [MY-010910] [Server] /usr/local/mysql8/bin/mysqld: Shutdown complete (mysqld 8.0.20)  Source distribution.

  原因:启动时读取binlog.index发现对应的binlog不见了,可以删除binlog.index中对应丢失的日志名,这里清空binlog.index,因为我删除了所有的日志,呃!
[root@chengyu ~]# true >/home/mysql8/data/binlog.index
[root@chengyu ~]# systemctl start mysqld8

[root@chengyu ~]# systemctl status mysqld8
● mysqld8.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/rc.d/init.d/mysqld8; bad; vendor preset: disabled)
   Active: active (running) since Mon 2020-07-27 16:06:36 CST; 5s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2074 ExecStop=/etc/rc.d/init.d/mysqld8 stop (code=exited, status=0/SUCCESS)
  Process: 3760 ExecStart=/etc/rc.d/init.d/mysqld8 start (code=exited, status=0/SUCCESS)
    Tasks: 2
   CGroup: /system.slice/mysqld8.service
           ├─3773 /bin/sh /usr/local/mysql8/bin/mysqld_safe --datadir=/home/mysql8/data --pid-file=/...
           └─4491 /usr/local/mysql8/bin/mysqld --basedir=/usr/local/mysql8 --datadir=/home/mysql8/da...

Jul 27 16:06:21 chengyu systemd[1]: Starting LSB: start and stop MySQL...
Jul 27 16:06:36 chengyu mysqld8[3760]: Starting MySQL............... SUCCESS!
Jul 27 16:06:36 chengyu systemd[1]: Started LSB: start and stop MySQL.

2020年07月28日

  食堂某阿姨8年来一直坚持打一勺子菜再扒出来半勺子,这其中的操作奥秘我始终没参透,莫名替她心累……

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
This error message indicates that the systemd service unit file for the Zabbix server service could not be located or is missing. To fix this issue, you can try the following steps: 1. Check if the Zabbix server package is installed on your system using the command: `dpkg -l zabbix-server*` or `rpm -qa | grep zabbix-server`. 2. If the package is not installed, install it using the appropriate package manager command for your system, such as `sudo apt install zabbix-server-mysql` for Debian/Ubuntu or `sudo yum install zabbix-server-mysql` for CentOS/RHEL. 3. If the package is already installed, try reinstalling it using `sudo apt-get --reinstall install zabbix-server-mysql` for Debian/Ubuntu or `sudo yum reinstall zabbix-server-mysql` for CentOS/RHEL. 4. If the issue persists, check if the systemd service file for Zabbix server exists in the `/etc/systemd/system/` directory. If it is missing, you can try to create it manually by copying the sample service file from the Zabbix server package installation directory. For example, on Debian/Ubuntu systems, you can use the following command: `sudo cp /usr/share/doc/zabbix-server-mysql/examples/systemd/zabbix-server.service /etc/systemd/system/`. 5. Finally, reload the systemd daemon and start the Zabbix server service using the following commands: ``` sudo systemctl daemon-reload sudo systemctl start zabbix-server.service ``` If the above steps do not resolve the issue, you may need to check the system logs for more detailed error messages or seek assistance from the Zabbix community.
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值