- 积分
- 9
- 威望
-
- 金钱
-
- 注册时间
- 2016-6-12
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 yjmp14 于 2021-12-5 16:33 编辑
# systemctl status mysql
● mysql.service - MySQL Community Server
Loaded: loaded (/etc/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since ; 3s ago
Process: 380770 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)
Main PID: 380781 (code=exited, status=1/FAILURE)
systemd[1]: Starting MySQL Community Server...
mysql[380770]: Starting MySQL
mysql[380770]: *
systemd[1]: Started MySQL Community Server.
mysql[380781]: mysqld_safe A mysqld process already exists
systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: mysql.service: Failed with result 'exit-code'.
系统:ARM64 Ubuntu 20,安装 MySQL 版本:8.0
使用 systemctl start mysql 无法启动,报错如上。
手动运行以下命令可以正常启动,请问是什么原因?
- nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=hostname.err --open-files-limit=65535 --pid-file=/usr/local/mysql/var/hostname.pid --socket=/tmp/mysql.sock --port=3306
复制代码
|
|