当前位置:网站首页>Unit MySQL appears in MySQL Solution of service could not be found
Unit MySQL appears in MySQL Solution of service could not be found
2022-07-18 07:29:00 【Cute Chu】
Image download 、 Domain name resolution 、 Time synchronization please click Alibaba cloud open source image station
Preface
Appear this kind of bug
Unit mysql.service could not be found
because bug I fixed it , Here is a quote from netizens bug Screenshot

1. principle
The reason for using the command line service mysqld status appear Unit mysql.service could not be found Of bug
Here's why :
installed mysql after
Found in init.d There is no mysql Service for
So use service mysqld status, Because it can't find mysql perhaps mysqld Service for
According to the above principle
The scheme can be given as follows :
- If not installed mysql, Reinstall mysql, Look at the init.d Is there a mysql Service for
- If installed mysql, stay init.d There is still no such thing in mysql Service for , Then through global search mysql Service for ( It may have been loaded elsewhere ), And then copy it to init.d Then you can
2. Solution
2.1 No installation mysql
According to the results given above
Can pass apt-get install install mysql
Or by yum install install mysql
Use specific commands according to your computer operating system
Or directly through wegt The command of directly one click download rpm And install rpm My bag
Find the bag you want through the official website
mysql Official Website Package
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm, The version is relatively low You can also use the following , Higher version number wget http://repo.mysql.com/mysql80-community-release-sles12.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
apt-get install mysql-server
Newly installed package You can check whether there is mysql My bag

Add boot auto start
Distinguish good yes mysqld still mysql
Use command systemctl enable mysql

Look at the mysql The state of
Use command service mysql status

2.2 Installed mysql
If installed mysql Then there is this bug
Enter... On the command line find / -name mysqld perhaps find / -name mysql
find mysql Service path of
Copy its services to init.d Under the document
Use command cp File path /etc/init.d/mysqld
After the start mysql that will do
If you're looking for mysql When the package path of
It is found that this kind of bug

It is suggested to use method 1 directly , Download a new mysql
3. summary
Generally just installed mysql There will be such bug, You need to reset some passwords and users
Link to the original text :https://blog.csdn.net/weixin_47872288/article/details/122285209
边栏推荐
- 数据治理生产线DataArts,让“人人都是分析师”
- Is it safe to choose a securities company to open an account for tongdaxin?
- mysql中 decimal(10,2)格式的通过stream 方式写到 kafka 变成 stri
- OpenHarmony模块二interfaces下头文件解析(9)
- Get to know the three modules of openharmony
- If you don't want to step on those holes in SaaS, you must first understand the "SaaS architecture"
- Getting started with compilation
- OpenHarmony相关知识学习
- Illegal profits exceed one million, and new outlets in the industry are being cracked and eroded
- 渗透测试流程
猜你喜欢

Millimeter wave radar learning (V) -- angle estimation

局域网攻击与网络设备安全配置

Yys connector with image recognition v2.0

(戴尔灵越7572)笔记本外扩显示器以后,笔记本没有声音了的解决办法

Programming exercises

MySQL autoincrement, index, foreign key, other operations

08 semi automatic annotation of target detection data set

(Dell Lingyue 7572) after the laptop expands the display, the laptop has no sound

毫米波雷达学习(五)——角度估计

OpenHarmony相关知识学习
随机推荐
英特尔发布开源AI参考套件
consul启动闪退
How to greedy match in VIM
Operation priority of self increasing (self decreasing) operator
OpenHarmony相关知识学习
Illegal profits exceed one million, and new outlets in the industry are being cracked and eroded
Programming exercises
我的一周年创作纪念日
Dataarts, a data governance production line, makes "everyone an analyst"
LINQ implements query string splicing: and and or
在数组中指定位置插入任意一个元素及删除数组中值为x的元素
YYS鼠标连点器
C language: [bit field operation] (colon is used in the structure)
Outside the bomb, can enterprises use DMS in as many environments as inside the bomb when using RDS? For example, how many databases do I want under these production instances
[basic use of oscilloscope] and [introduction to the meaning of each key on the oscilloscope key panel]
渗透测试流程
Those things on the server side
【示波器的基本使用】以及【示波器按键面板上各个按键含义的介绍】
模块二interfaces下头文件解析
Probability meditation: 1 Plausible reasoning