Я устанавливаю mysql-server с помощью sudo apt install mysql-server
но потом произошло следующее:
Код: Выделить всё
ryan@ryan-ThinkPad-T495s:~$ sudo systemctl start mysql
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xeu mysql.service" for details.
ryan@ryan-ThinkPad-T495s:~$ systemctl status mysql.service
× mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2025-10-07 19:36:17 +08; 42s ago
Process: 7392 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)
CPU: 9ms
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: Failed to start MySQL Community Server.
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: Stopped MySQL Community Server.
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: mysql.service: Start request repeated too quickly.
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: mysql.service: Failed with result 'exit-code'.
Oct 07 19:36:17 ryan-ThinkPad-T495s systemd[1]: Failed to start MySQL Community Server.
Как я могу решить это для успешного запуска сервера SQL?
Подробнее здесь: https://stackoverflow.com/questions/797 ... error-code
Мобильная версия