几天前,我在新安装的 ubuntu 22.04 中安装了 LAMP,一切运行良好。但是今天当我尝试启动 mysql 时却显示以下错误。
\nmysql.service - MySQL Community Server\n Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)\n Active: failed (Result: exit-code) since Sun 2022-05-01 09:35:16 IST; 19s ago\nProcess: 6471 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)\nProcess: 6479 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)\n\n\nMain PID: 6479 (code=exited, status=1/FAILURE)\n Status: "Server startup in progress"\n Error: 2 (No such file or directory)\n CPU: 312ms\n\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.\nMay 01 09:35:16 g-pc systemd[1]: Stopped MySQL Community Server.\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Start request repeated too quickly.\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Failed with result 'exit-code'.\nMay 01 09:35:16 g-pc systemd[1]: Failed to start MySQL Community Server.\nRun Code Online (Sandbox Code Playgroud)\nJournalctl 显示以下内容:
\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.\n\xe2\x96\x91\xe2\x96\x91 Subject: Automatic restarting of a unit has been scheduled\n\xe2\x96\x91\xe2\x96\x91 Defined-By: systemd\n\xe2\x96\x91\xe2\x96\x91 Support: http://www.ubuntu.com/support\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 Automatic restarting of the unit mysql.service has been scheduled, as the result for\n\xe2\x96\x91\xe2\x96\x91 the configured Restart= setting for the unit.\nMay 01 09:35:16 g-pc systemd[1]: Stopped MySQL Community Server.\n\xe2\x96\x91\xe2\x96\x91 Subject: A stop job for unit mysql.service has finished\n\xe2\x96\x91\xe2\x96\x91 Defined-By: systemd\n\xe2\x96\x91\xe2\x96\x91 Support: http://www.ubuntu.com/support\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 A stop job for unit mysql.service has finished.\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 The job identifier is 3436 and the job result is done.\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Start request repeated too quickly.\nMay 01 09:35:16 g-pc systemd[1]: mysql.service: Failed with result 'exit-code'.\n\xe2\x96\x91\xe2\x96\x91 Subject: Unit failed\n\xe2\x96\x91\xe2\x96\x91 Defined-By: systemd\n\xe2\x96\x91\xe2\x96\x91 Support: http://www.ubuntu.com/support\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 The unit mysql.service has entered the 'failed' state with result 'exit-code'.\nMay 01 09:35:16 g-pc systemd[1]: Failed to start MySQL Community Server.\n\xe2\x96\x91\xe2\x96\x91 Subject: A start job for unit mysql.service has failed\n\xe2\x96\x91\xe2\x96\x91 Defined-By: systemd\n\xe2\x96\x91\xe2\x96\x91 Support: http://www.ubuntu.com/support\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 A start job for unit mysql.service has finished with a failure.\n\xe2\x96\x91\xe2\x96\x91 \n\xe2\x96\x91\xe2\x96\x91 The job identifier is 3436 and the job result is failed.\n\n\n \nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
15053 次 |
| 最近记录: |