我正在运行mariadb 10.3.27,在一个长查询错误之后,mariadb停止了工作。
我重新启动它并检查systemctl状态。
Mariadb正在工作,但也有以下错误:
[ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
mariadbd[10942]: 2021-09-30 19:44:58 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
mariadbd[10942]: 2021-09-30 19:44:58 0 [Note] Reading of all Master_info entries succeeded
mariadbd[10942]: 2021-09-30 19:44:58 0 [Note] Added new Master_info '' to hash table
mariadbd[10942]: 2021-09-30 19:44:58 0 [Note] /usr/sbin/mariadbd: ready for connections.
mariadbd[10942]: Version: '10.5.10-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
systemd[1]: Started MariaDB 10.5.10 database server.
mariadbd[10942]: 2021-09-30 19:44:58 3 [ERROR] InnoDB: Table `mysql`.`innodb_table_stats` not found.
mariadbd[10942]: 2021-09-30 19:47:20 0 [Note] InnoDB: Buffer pool(s) load completed at 210930 19:47:20
mariadbd[10942]: 2021-10-01 6:29:22 14690 [ERROR] Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 50565, now running 100510. Please use mariadb-upgrade to fix this error我觉得这很糟糕。我可以看到,我建议运行mariadb升级,但我担心这会破坏一切。我也不明白为什么我要突然升级。在长时间运行的查询之前,它运行得很好。
有人能帮我吗?
谢谢,我提前了。
发布于 2021-10-01 14:17:07
进行备份,然后运行mariadb-upgrade。
在升级之后,必须以某种方式运行mariadb-upgrade。它不是可选的,您不能期望MariaDB在没有此功能的情况下工作。
它似乎起了一段时间的作用,但这并不会使上述情况变得不那么真实。
在某些Linux发行版上,mariadb-upgrade是在升级MariaDB服务器包时为您自动运行的,而在另一些版本中则不是。
https://dba.stackexchange.com/questions/300427
复制相似问题