Unit mysqld.service could not be found.
- 具体命令
service mysqld status
systemctl status mysqld
结果
Unit mysqld.service could not be found.
查看mysql的启动状态:
service mysqld status
或者
service mysql status
如果是
mysqld is stopped
那就说明mysql服务是停止状态;如果是
mysqld is running
那就说明mysql服务是启动状态。https://blog.csdn.net/weixin_43404791/article/details/105174074
找到mysql.server文件,这个文件据说与mysqld文件一模一样,只是文件名不同
[root@ldy ~]$ find / -name mysql.server
/usr/local/mysql-8.0.13/support-files/mysql.server
复制 mysql.server文件到/etc/init.d/目录下,重命名为mysqld
[root@ldy ~]$ cp /usr/local/mysql-8.0.13/support-files/mysql.server /etc/init.d/mysqld
1
2
查看mysqld status状态
[root@ldy ~]$ service mysqld status
/etc/init.d/mysqld: line 239: my_print_defaults: command not found
posted on 2023-02-02 10:01 867511789 阅读(1934) 评论(0) 编辑 收藏 举报