- 找到mysql.server文件
- 复制 mysql.server文件到/etc/init.d/目录下,重命名为mysql
- 查看mysqld status状态 使用命令1:service mysql status
命令1:service mysql status
SUCCESS! MySQL running (9954)
命令2:systemctl status mysqld
● mysqld.service - LSB: start and stop MySQL
Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled)
Active: active (running) since Thu 2023-05-11 06:30:09 PDT; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 9691 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=0/SUCCESS)
Tasks: 28
Memory: 193.4M
CGroup: /system.slice/mysqld.service
├─9708 /bin/sh /usr/local/mysql/bin/mysqld_safe...
└─9954 /usr/local/mysql/bin/mysqld --basedir=/u...
May 11 06:30:09 localhost.localdomain systemd[1]: Starting...
May 11 06:30:09 localhost.localdomain mysqld[9691]: Starti...
May 11 06:30:09 localhost.localdomain systemd[1]: Started ...
Hint: Some lines were ellipsized, use -l to show in full.
命令3:systemctl start mysqld
启动MySQL
标签:status,...,30,查看,09,mysqld,liunx,mysql From: https://www.cnblogs.com/lskun666/p/17392372.html