当前位置:网站首页>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 !
边栏推荐
- 谈谈 SAP 系统的权限管控和事务记录功能的实现
- Master this promotion path and share interview materials
- 如何选择合适的自动化测试工具?
- 【源码解读】| LiveListenerBus源码解读
- 【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
- 最新Android面试合集,android视频提取音频
- [designmode] template method pattern
- Sator launched Web3 game "satorspace" and launched hoobi
- A tour of gRPC:03 - proto序列化/反序列化
- LeetCode-SQL第一天
猜你喜欢

【图像传感器】相关双采样CDS

浅浅理解.net core的路由

Pycharm IDE下载

Sort out several important Android knowledge and advanced Android development interview questions

time标准库

NeRF:DeepFake的最终替代者?
ByteDance Android gold, silver and four analysis, Android interview question app

QML初学

A tour of gRPC:03 - proto序列化/反序列化
![[Seaborn] combination chart: facetgrid, jointgrid, pairgrid](/img/89/a7cf40fb3a7622cb78ea1b92ffd2fb.png)
[Seaborn] combination chart: facetgrid, jointgrid, pairgrid
随机推荐
LeetCode 1031. Maximum sum of two non overlapping subarrays
应用在温度检测仪中的温度传感芯片
[Seaborn] combination chart: pairplot and jointplot
LeetCode 1043. 分隔数组以得到最大和 每日一题
typescript ts基础知识之tsconfig.json配置选项
Localstorage and sessionstorage
99% 用户在 Power BI 云端报表常犯错误
值得一看,面试考点与面试技巧
【Seaborn】组合图表:PairPlot和JointPlot
On Apache Doris Fe processing query SQL source code analysis
The latest interview experience of Android manufacturers in 2022, Android view+handler+binder
QML初学
Test case management tool recommendation
rpcms获取指定分类下的文章的方法
《产品经理必读:五种经典的创新思维模型》的读后感
Sator推出Web3遊戲“Satorspace” ,並上線Huobi
最新高频Android面试题目分享,带你一起探究Android事件分发机制
Ray and OBB intersection detection
Skimage learning (1)
LeetCode 312. Poke balloon daily