当前位置:网站首页>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 !
边栏推荐
- Sator launched Web3 game "satorspace" and launched hoobi
- The process of creating custom controls in QT to encapsulating them into toolbars (II): encapsulating custom controls into toolbars
- 【图像传感器】相关双采样CDS
- 如何在软件研发阶段落地安全实践
- [PHP] PHP interface inheritance and interface multi inheritance principle and implementation method
- User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions
- 科普达人丨一文弄懂什么是云计算?
- 谎牛计数(春季每日一题 53)
- QT picture background color pixel processing method
- LeetCode 120. Triangle minimum path and daily question
猜你喜欢

科普达人丨一文弄懂什么是云计算?

Shallow understanding Net core routing

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

运算符

测试用例管理工具推荐

skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色

Skimage learning (2) -- RGB to grayscale, RGB to HSV, histogram matching

Sator推出Web3游戏“Satorspace” ,并上线Huobi

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

低代码(lowcode)帮助运输公司增强供应链管理的4种方式
随机推荐
mysql实现两个字段合并成一个字段查询
QML初学
Read PG in data warehouse in one article_ stat
time标准库
DNS 系列(一):为什么更新了 DNS 记录不生效?
运算符
模块六
Seaborn数据可视化
Temperature sensor chip used in temperature detector
Shallow understanding Net core routing
【源码解读】| LiveListenerBus源码解读
LeetCode 1043. 分隔数组以得到最大和 每日一题
在哪个期货公司开期货户最安全?
Sator launched Web3 game "satorspace" and launched hoobi
99% 用户在 Power BI 云端报表常犯错误
Master this promotion path and share interview materials
Skimage learning (1)
LeetCode 1031. 两个非重叠子数组的最大和 每日一题
NeRF:DeepFake的最终替代者?
typescript ts基础知识之tsconfig.json配置选项