mysql - 无法启动 MySQL 社区服务器
问题描述
我已经用这个命令更新了 mysql-server(5.7 到 8.0):
apt-get install mysql-server
安装后,我收到此错误:
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
日志 journalctl -xe :
-- L'unité (unit) mysql.service a commencé à démarrer.
juil. 18 13:49:03 reflex02.soeman.fr systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit mysql.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
juil. 18 13:49:03 reflex02.soeman.fr systemd[1]: mysql.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit mysql.service has entered the 'failed' state with result 'exit-code'.
juil. 18 13:49:03 reflex02.soeman.fr systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
我不知道如何解决这个问题,我无法删除mysql,我有数据。
解决方案
Mysql Workbench 有这个功能,祝你好运!
推荐阅读
- ignite - 如何更改 Apache Ignite 的 REST API 端口?
- java - 创建像 Spring DataSourceBuilder 一样工作的自定义构建器?
- android - Chrome 更新后未加载 Android 9 WebView(也是 admob 广告)
- cordova - 免费后如何检测用户是否购买了该应用程序?
- kotlin - 值不会在简单的计算中相加
- firebase - 如何获取文档数据并将其设置在屏幕上
- r - 使用百分比时的美学分组论点
- java - Android Pjsip:音频电话会议
- php - 邮件程序错误:SMTP 连接()失败。https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 在我的代码中
- android - 当我将 `sqflite` 添加到我的 pubspec.yaml 时,为什么我的颤振应用程序会崩溃?