当前位置:网站首页>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.tar
obtain
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
边栏推荐
- Invalid bound statement (not found)解决方法总结
- 6092. 替换数组中的元素
- Strings and arrays
- 6095. 强密码检验器 II
- For the problem that Folium map cannot be displayed, the temporary solution is as follows
- Aike AI frontier promotion (7.2)
- /Bin/ld: cannot find -lxml2
- 爱可可AI前沿推介(7.2)
- fastjson List转JSONArray以及JSONArray转List「建议收藏」
- Pyinstaller's method of packaging pictures attached to exe
猜你喜欢
已知兩種遍曆序列構造二叉樹
Two traversal sequences are known to construct binary trees
《大学“电路分析基础”课程实验合集.实验七》丨正弦稳态电路的研究
《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
Armv8-a programming guide MMU (4)
Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals
Traversal before, during and after binary tree
使用 percona 工具给 MySQL 表加字段中断后该如何操作
《大学“电路分析基础”课程实验合集.实验四》丨线性电路特性的研究
Boot 事务使用
随机推荐
PHP static members
For the problem that Folium map cannot be displayed, the temporary solution is as follows
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
Fiddler realizes mobile packet capturing - getting started
matlab中wavedec2,说说wavedec2函数[通俗易懂]
idea jar包冲突排查
奥比中光 astra: Could not open “2bc5/[email protected]/6“: Failed to set USB interface
使用FFmpeg命令行进行UDP、RTP推流(H264、TS),ffplay接收
构建多架构镜像的最佳实践
[leetcode] 417 - Pacific Atlantic current problem
[leetcode] 19 delete the penultimate node of the linked list
Two traversal sequences are known to construct binary trees
PyObject 转 char* (string)
College entrance examination admission score line crawler
Aike AI frontier promotion (7.2)
HMS core machine learning service helps zaful users to shop conveniently
The outline dimension function application of small motherboard
[salesforce] how to confirm your salesforce version?
如何實現十億級離線 CSV 導入 Nebula Graph
/bin/ld: 找不到 -lpam