mac 上的 Mariadb 崩溃

时间:2021-06-22 03:59:42

标签: mysql macos mariadb

我在启动 mysql 服务器时遇到问题请帮忙.. 通过自制软件,我安装了 mysql 和 mariadb@10.4 以使用 mariadb 第一次安装很顺利,连接也很好,但在重新启动我的实验室后,它开始卡住了。

现在当我输入 mysql.server start 然后它说

golden$ mysql.server start
Starting MariaDB
.210622 12:42:38 mysqld_safe Logging to '/usr/local/var/mysql/kimui-MacBook-Air.local.err'.
210622 12:42:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
/usr/local/cellar/mariadb@10.4/10.4.18/bin/mysql.server: line 264: kill: (21096) - No such process

所以我查找了错误日志并说

2021-06-22 12:29:19 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2021-06-22 12:29:19 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-06-22 12:29:19 0 [Note] InnoDB: Uses event mutexes
2021-06-22 12:29:19 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-06-22 12:29:19 0 [Note] InnoDB: Number of pools: 1
2021-06-22 12:29:19 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-06-22 12:29:19 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-06-22 12:29:19 0 [Note] InnoDB: Completed initialization of buffer pool
2021-06-22 12:29:19 0 [ERROR] InnoDB: Invalid flags 0x4800 in ./ibdata1
2021-06-22 12:29:19 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
2021-06-22 12:29:19 0 [Note] InnoDB: Starting shutdown...
2021-06-22 12:29:19 0 [ERROR] Plugin 'InnoDB' init function returned error.
2021-06-22 12:29:19 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2021-06-22 12:29:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-06-22 12:29:19 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-06-22 12:29:19 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2021-06-22 12:29:19 0 [ERROR] Aborting

如果我使用 brew 指挥官

brew services start mysql

它运行mysql Server并成功连接mysql -u root -p 但在这种情况下不能使用 MariaDB。

所以我试着

brew service start mariadb@10.4

无论是mysql -u root -p还是mariadb -u root -p都无法获得任何连接

我真的不知道我应该从什么时候开始解决这个问题。

需要你的建议

0 个答案:

没有答案
相关问题