当前位置:网站首页>Huawei ECS installs mysqlb for mysqld service failed because the control process exited with error code. See “sys
Huawei ECS installs mysqlb for mysqld service failed because the control process exited with error code. See “sys
2022-07-02 15:53:00 【Please tell him】
Recently rented a Huawei cloud server , It's because they are greedy for big discounts for new users , It's not expensive , But it's not easy to use
One 、
Find all about linux In the system about mysql The file of
# find / -name '*mysql'

Delete one by one through the following
rm -rf /usr/local/mysql
# Because Huawei cloud may default to maradb Uninstall the on the server first mariadb rely on
yum remove mariadb-libs
install mysql It's time to get the installation package from the following two places
The download page :https://downloads.mysql.com/archives/community/
Download address :https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
And download it

decompression
tar -xvf mysql-5.7.36-1.el7.x86_64.rpm-bundle.tarobtain

The implementation is as follows
# 2. In turn, installation mysql rpm
rpm -ivh mysql-community-common-5.7.36-1.el7.x86_64.rpm;
rpm -ivh mysql-community-libs-5.7.36-1.el7.x86_64.rpm;
rpm -ivh mysql-community-client-5.7.36-1.el7.x86_64.rpm;
rpm -ivh mysql-community-server-5.7.36-1.el7.x86_64.rpm --force --nodeps;
start-up systemctl start mysqld
Report errors
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xe" for details.
[[email protected] system]# systemctl status mysqld.service
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-06-28 15:12:01 CST; 18s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 21786 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=127)
Process: 21763 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
More error messages

Treatment method
vi /etc/my.cnf
take datadir = /var/lib/mysql Change to 
after , Still need to be in /var/lib/mysql perform mkdir data If the directory exists data Delete and recreate the folder
边栏推荐
- Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
- HMS core machine learning service helps zaful users to shop conveniently
- win10系统升级一段时间后,内存占用过高
- 隐藏在 Nebula Graph 背后的星辰大海
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- 已知兩種遍曆序列構造二叉樹
- Strings and arrays
- 2278. Percentage of letters in string
- (5) Flink's table API and SQL update mode and Kafka connector case
- Use ffmpeg command line to push UDP and RTP streams (H264 and TS), and ffplay receives
猜你喜欢

Teach you how to build virtual machines locally and deploy microservices

The outline dimension function application of small motherboard

Postgressql stream replication active / standby switchover primary database no read / write downtime scenario

How to import a billion level offline CSV into Nepal graph

Why does the system convert the temp environment variable to a short file name?

idea jar包冲突排查

Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
![[experience cloud] how to get the metadata of experience cloud in vscode](/img/45/012c2265402ba1b44f4497f468bc61.png)
[experience cloud] how to get the metadata of experience cloud in vscode

How to use percona tool to add fields to MySQL table after interruption

Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
随机推荐
动态规划入门一,队列的bfs(70.121.279.200)
数字藏品系统开发(程序开发)丨数字藏品3D建模经济模式系统开发源码
2278. 字母在字符串中的百分比
Xpt2046 four wire resistive touch screen
/Bin/ld: cannot find -lcrypto
全是精华的模电专题复习资料:基本放大电路知识点
目标检测—利用labelimg制作自己的深度学习目标检测数据集
How to use percona tool to add fields to MySQL table after interruption
使用 percona 工具给 MySQL 表加字段中断后该如何操作
Invalid bound statement (not found)解决方法总结
Crawl the information of national colleges and universities in 1 minute and make it into a large screen for visualization!
制作p12证书[通俗易懂]
SQL FOREIGN KEY
Boot 中bean配置覆盖
(5) Flink's table API and SQL update mode and Kafka connector case
beforeEach
图数据库|Nebula Graph v3.1.0 性能报告
Application of visualization technology in Nebula graph
/Bin/ld: cannot find -llz4
Locate: cannot execute stat() `/var/lib/mlocate/mlocate Db ': there is no such file or directory