当前位置:网站首页>Notes on installing MySQL in centos7
Notes on installing MySQL in centos7
2022-07-07 17:08:00 【Python and big data analysis】
It needs to be deployed in centos7 Deployed on the virtual machine of mysql, Many mistakes were reported out of thin air , The world article a big copy , The laxity of the Internet is exposed here , Of course, I also took many detours , Deleted and installed , Installed and deleted , I won't elaborate here , Keep only the final result .
Install according to the normal documentation mysql, Will report the mistake .
Failed to start mysqld.service: Unit not found
In general terms , Uninstall mysql, install mariadb It also reports mistakes
Failed to start mariadb.service: Unit not found
Before installation , Or solve it first wget problem
Last login: Wed Jun :: from 192.168.3.122
[[email protected] ~]# cd /etc
[[email protected] etc]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
-bash: wget: Command not found
[[email protected] local]# yum install wget
Loaded plug-in :fastestmirror
... Omit words here
already installed :
wget.x86_64 :1.14-18.el7_6.1
complete !Download again rpm package , It feels unnecessary here , But no test
[[email protected] etc]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
--2022-06-15 ::-- http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
... Omit words here
already installed :
mysql57-community-release.noarch :el7-10
complete !
adopt yum install mysql-community-server, Add here nogpgcheck
[[email protected] etc]# yum -y install mysql-community-server --nogpgcheck
Loaded plug-in :fastestmirror
L... Omit words here
already installed :
mysql-community-server.x86_64 :5.7.38-1.el7
Installed as a dependency :
mysql-community-client.x86_64 :5.7.38-1.el7
mysql-community-common.x86_64 :5.7.38-1.el7
mysql-community-libs.x86_64 :5.7.38-1.el7
complete !
start-up mysql service , Observation state
[[email protected] etc]# systemctl start mysqld.service
[[email protected] etc]# systemctl status mysqld.service
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since 3、 ... and -06-15 :: CST; s ago
Docs: man:mysqld()
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=/SUCCESS)
Process: ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=/SUCCESS)
Main PID: (mysqld)
CGroup: /system.slice/mysqld.service
└─ /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld...
month :: bogon systemd[]: Starting MySQL Server...
month :: bogon systemd[]: Started MySQL Server.
[[email protected] etc]#
Last , Thank you for your attention , Thank you for your support !
边栏推荐
- LeetCode 1696. Jumping game VI daily question
- [fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
- 掌握这套精编Android高级面试题解析,oppoAndroid面试题
- Skimage learning (1)
- skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配
- 蓝桥杯 决赛 异或变换 100分
- Module VI
- QML初学
- Temperature sensor chip used in temperature detector
- LeetCode 1986. 完成任务的最少工作时间段 每日一题
猜你喜欢

PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight

The top of slashdata developer tool is up to you!!!

SlashData开发者工具榜首等你而定!!!
ByteDance Android gold, silver and four analysis, Android interview question app

预售17.9万,恒驰5能不能火?产品力在线,就看怎么卖

SlashData开发者工具榜首等你而定!!!

The latest interview experience of Android manufacturers in 2022, Android view+handler+binder

自定义View必备知识,Android研发岗必问30+道高级面试题

Process from creation to encapsulation of custom controls in QT to toolbar (I): creation of custom controls

Sator推出Web3游戏“Satorspace” ,并上线Huobi
随机推荐
LeetCode-SQL第一天
[image sensor] correlated double sampling CDs
LeetCode 1049. Weight of the last stone II daily question
字节跳动高工面试,轻松入门flutter
《产品经理必读:五种经典的创新思维模型》的读后感
直接上干货,100%好评
LeetCode 1043. 分隔数组以得到最大和 每日一题
Ray and OBB intersection detection
SIGGRAPH 2022最佳技术论文奖重磅出炉!北大陈宝权团队获荣誉提名
邮件服务器被列入黑名单,如何快速解封?
LeetCode 1774. The dessert cost closest to the target price is one question per day
LeetCode 1186. 删除一次得到子数组最大和 每日一题
Sator推出Web3游戏“Satorspace” ,并上线Huobi
掌握这套精编Android高级面试题解析,oppoAndroid面试题
Shallow understanding Net core routing
最新Android面试合集,android视频提取音频
防火墙系统崩溃、文件丢失的修复方法,材料成本0元
最新阿里P7技术体系,妈妈再也不用担心我找工作了
编程模式-表驱动编程
MRS离线数据分析:通过Flink作业处理OBS数据