当前位置:网站首页>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 152. Product maximum subarray daily question
- LeetCode 403. 青蛙过河 每日一题
- [Seaborn] combination chart: pairplot and jointplot
- LeetCode 1696. 跳跃游戏 VI 每日一题
- Flask搭建api服务-SQL配置文件
- 电脑无法加域,ping域名显示为公网IP,这是什么问题?怎么解决?
- LeetCode 1043. 分隔数组以得到最大和 每日一题
- LeetCode 1049. Weight of the last stone II daily question
- LeetCode 1155. 掷骰子的N种方法 每日一题
- Flask搭建api服务-生成API文档
猜你喜欢
QT picture background color pixel processing method
A tour of gRPC:03 - proto序列化/反序列化
Test case management tool recommendation
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
Reflections on "product managers must read: five classic innovative thinking models"
【Seaborn】组合图表:FacetGrid、JointGrid、PairGrid
QML初学
skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配
预售17.9万,恒驰5能不能火?产品力在线,就看怎么卖
Mrs offline data analysis: process OBS data through Flink job
随机推荐
Skimage learning (1)
mysql实现两个字段合并成一个字段查询
Proxmox VE重装后,如何无损挂载原有的数据盘?
rpcms获取指定分类下的文章的方法
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
LeetCode 1654. The minimum number of jumps to get home one question per day
How to add aplayer music player in blog
LeetCode 312. Poke balloon daily
Sator launched Web3 game "satorspace" and launched hoobi
Flask搭建api服务
LeetCode 1031. Maximum sum of two non overlapping subarrays
LeetCode 1477. Find two subarrays with sum as the target value and no overlap
如何选择合适的自动化测试工具?
typescript ts基础知识之tsconfig.json配置选项
【视频/音频数据处理】上海道宁为您带来Elecard下载、试用、教程
Interface oriented programming
Skimage learning (3) -- adapt the gray filter to RGB images, separate colors by immunohistochemical staining, and filter the maximum value of the region
QT picture background color pixel processing method
LeetCode-SQL第一天
LeetCode 120. 三角形最小路径和 每日一题