@szQocks

Как решить ошибку при установке mysql-server?

При установке:

root@box-715892:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.31-0ubuntu0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-8.0 (8.0.31-0ubuntu0.20.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
2022-11-28T11:28:46.334258Z 0 [ERROR] [MY-011065] [Server] Unable to determine if daemon is running: No such file or directory (rc=0).
2022-11-28T11:28:46.335819Z 0 [ERROR] [MY-010946] [Server] Failed to start mysqld daemon. Check mysqld error log.
Warning: Unable to start the server.
Job for mysql.service failed because a fatal signal was delivered to the control process.
See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: signal) since Mon 2022-11-28 14:28:49 MSK; 71ms ago
    Process: 7541 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
    Process: 7559 ExecStart=/usr/sbin/mysqld (code=killed, signal=KILL)
   Main PID: 7559 (code=killed, signal=KILL)
     Status: "Server startup in progress"
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-8.0; however:
  Package mysql-server-8.0 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 mysql-server-8.0
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@box-715892:~#


При вызове "systemctl status mysql.service":

● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: failed (Result: signal) since Mon 2022-11-28 14:28:57 MSK; 3min 50s ago
    Process: 7633 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
    Process: 7644 ExecStart=/usr/sbin/mysqld (code=killed, signal=KILL)
   Main PID: 7644 (code=killed, signal=KILL)
     Status: "Server startup in progress"

Nov 28 14:28:57 box-715892 systemd[1]: mysql.service: Failed with result 'signal'.
Nov 28 14:28:57 box-715892 systemd[1]: Failed to start MySQL Community Server.
Nov 28 14:28:57 box-715892 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Nov 28 14:28:57 box-715892 systemd[1]: Stopped MySQL Community Server.
Nov 28 14:28:57 box-715892 systemd[1]: mysql.service: Start request repeated too quickly.
Nov 28 14:28:57 box-715892 systemd[1]: mysql.service: Failed with result 'signal'.
Nov 28 14:28:57 box-715892 systemd[1]: Failed to start MySQL Community Server.
  • Вопрос задан
  • 174 просмотра
Решения вопроса 1
@szQocks Автор вопроса
Проблема в том что машине недостаточно оперативной памяти для запуска процесса, решить это можно двумя способами на сколько я узнал:
1 - swapfile , гуглиться очень просто к примеру - "swapfile ubuntu"
2 - расширить оперативку сменой тарифа на хосте
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы