AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 719250
Accepted
telometto
telometto
Asked: 2022-10-01 00:56:21 +0800 CST2022-10-01 00:56:21 +0800 CST 2022-10-01 00:56:21 +0800 CST

如何在 Fedora 上重新安装 mysql/mysqld?

  • 772

我遇到了一些mysqld无法启动的问题,因此我想清除或(至少)重新安装其文件,以便用库存文件替换当前配置文件,以便重新启动。

这是的内容journalctl -xeu mysqld.service:

░░ The job identifier is 276.
sep. 30 08:03:48 oberkommando systemd[1]: mysqld.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit mysqld.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
sep. 30 08:03:48 oberkommando systemd[1]: mysqld.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit mysqld.service has entered the 'failed' state with result 'exit-code'.
sep. 30 08:03:48 oberkommando systemd[1]: Failed to start mysqld.service - MySQL Server.
░░ Subject: A start job for unit mysqld.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit mysqld.service has finished with a failure.
░░ 
░░ The job identifier is 276 and the job result is failed.

这是的内容/var/log/mysqld.log:

2022-09-28T22:24:53.958318Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 11
2022-09-28T22:24:53.958374Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 11 in a file operation.
2022-09-28T22:24:53.958389Z 1 [ERROR] [MY-012596] [InnoDB] Error number 11 means 'Resource temporarily unavailable'
2022-09-28T22:24:53.958410Z 1 [ERROR] [MY-012215] [InnoDB] Cannot open datafile './ibdata1'
2022-09-28T22:24:53.958444Z 1 [ERROR] [MY-012959] [InnoDB] Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2022-09-28T22:24:53.958457Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Cannot open a file.
2022-09-28T22:24:54.458706Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-09-28T22:24:54.458838Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-09-28T22:24:54.458861Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-28T22:24:54.459186Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-29T09:52:22.805182Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 1440
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-29T09:52:22.817204Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-29T09:52:22.817266Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-29T10:09:29.182680Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 1455
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-29T10:09:29.186705Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-29T10:09:29.186770Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-29T10:14:02.494574Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 5767
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-29T10:14:02.495732Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-29T10:14:02.495795Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-29T19:49:57.027740Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 1439
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-29T19:49:57.040203Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-29T19:49:57.040260Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-29T19:51:25.624747Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-09-29T19:51:25.624780Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 2639
2022-09-29T19:51:25.626154Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-09-29T19:51:25.626157Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-29T19:51:25.626617Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-29T19:51:25.626673Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.
2022-09-30T06:03:48.888324Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-09-30T06:03:48.888374Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 1454
2022-09-30T06:03:48.900171Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/mysqld_tmp_file_case_insensitive_test.lower-test
2022-09-30T06:03:48.900174Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-09-30T06:03:48.901992Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-09-30T06:03:48.902046Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.30)  MySQL Community Server - GPL.

我正在使用 Fedora 36 并安装了以下软件包

mysql80-community-release-fc36-1.noarch
mysql-community-common-8.0.30-10.fc36.x86_64
mysql-community-client-plugins-8.0.30-10.fc36.x86_64
mysql-community-libs-8.0.30-10.fc36.x86_64
mysql-community-client-8.0.30-10.fc36.x86_64
mysql-community-icu-data-files-8.0.30-10.fc36.x86_64
mysql-community-server-8.0.30-10.fc36.x86_64
mysql-workbench-community-8.0.30-1.fc36.x86_64

使用MySQL 的网站。

问题是我想卸载它,但它想删除太多依赖项,如果这意味着它们已损坏,Fedora 不允许安装依赖项。

fedora software-installation
  • 1 1 个回答
  • 26 Views

1 个回答

  • Voted
  1. Best Answer
    Artem S. Tashkinov
    2022-10-01T01:35:59+08:002022-10-01T01:35:59+08:00
    sudo systemctl stop mysqld # not sure it's called this way
    sudo rm -rf /var/lib/mysql # this will wipe out all the data inside the database - @toppk
    sudo dnf reinstall mysql-community-server
    
    • 1

相关问题

  • VirtualBox 无法在 Fedora 26 中安装

  • 使用触摸屏时如何禁用屏幕键盘?

  • 如何找出 nmcli 中缺少的插件?

  • 在 Debian 中编写 C#

  • 如何正确分区 SSD 以进行双启动设置

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve