当前位置:网站首页>CentOS7 install MySQL graphic detailed tutorial
CentOS7 install MySQL graphic detailed tutorial
2022-07-31 04:52:00 【jiey0407】
目录
1.?Send the compressed package to the server
7.?安装完之后修改当前目录拥有者为root用户,修改data目录拥有者为mysql
?11.?Add remote login permission
一. 检查是否已经安装过MySQL
这里介绍两种方法
方法一
1.rpm查看mysql安装
rpm -qa|grep -i mysql
2.卸载前关闭mysql服务
rpm -ev --nodepsmysql-community-release-el7-5.noarch
rpm -ev --nodepsmysql-community-common-5.6.38-2.el7.x86_64
…
执行完命令之后再次执行 rpm-qa|grep -i mysql 会发现已经卸载完成.
方法二
1. 执行命令 查找mysql文件夹
find / -name mysql

2. 把查找出的目录删除
rm -rf /run/lock/subsys/mysql /usr/local/mysql /usr/local/mysql/include/mysql /usr/local/mysql/data/mysql /usr/local/mysql/bin/mysql
二.安装MySQL
1.Send the compressed package to the server
我这里用的是mysql-5.6.36 , If you need other versions, you can download them yourself
这里是mysql-5.6.36的压缩包 :
链接:https://pan.baidu.com/s/1Kles21GxwyfEkyqicgyzhQ?pwd=sin7
提取码:sin7
2. 解压文件
tar -zxvf mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz
3.重命名解压后的文件
mv mysql-5.6.36-linux-glibc2.5-x86_64/ mysql
4.检查是否有mysql用户组和mysql用户
groups mysql
若有----跳过此步
若无----添加
groupadd mysql
useradd -r -g mysql mysql
5.进入mysql目录-----更新权限
cd mysql/
chown -R mysql:mysql ./
6.执行安装脚本
./scripts/mysql_install_db --user=mysql
如果提示 FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:Data::Dumper的话,Then the reason is the lack ofperl-module
yum -y install perl-Module-Install.noarch
安装perl-module模块,等待perl-module安装成功之后,Continue with the previous installation

7.安装完之后修改当前目录拥有者为root用户,修改data目录拥有者为mysql
chown -R root:root ./
chown -R mysql:mysql data
8.启动mysql
./support-files/mysql.server start

9. 修改密码
./bin/mysqladmin -u root password ‘你的密码’
10.登录
./bin/mysql -h127.0.0.1 -uroot -p
Enter the password you just set to log in

11.Add remote login permission
grant all privileges on *.* to [email protected]‘%’ identified by ‘你的密码’;
flush privileges;
12. 将MySQL注册为服务
cp support-files/mysql.server /etc/init.d/mysqld
chkconfig --add
mysqld chkconfig mysqld on
service mysqld restart(重启)
service mysqld status (状态)
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在.深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小.自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前.因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担.添加下方名片,即可获取全套学习资料哦
边栏推荐
- Unity教程:URP渲染管线实战教程系列【1】
- Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
- EasyExcel的简单读取操作
- sql语句-如何以一个表中的数据为条件据查询另一个表中的数据
- 【wpf】wpf中的那些模板之深度解析
- Industry-university-research application to build an open source talent ecosystem | 2022 Open Atom Global Open Source Summit Education Sub-Forum was successfully held
- pom文件成橘红色未加载的解决方案
- 【线性神经网络】softmax回归
- VScode+ESP32 quickly install ESP-IDF plugin
- Sql解析转换之JSqlParse完整介绍
猜你喜欢

开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开

EasyExcel的简单读取操作

MySQL数据库安装配置保姆级教程(以8.0.29为例)有手就行

【debug锦集】Expected input batch_size (1) to match target batch_size (0)
![[Cloud Native] DevOps (5): Integrating Harbor](/img/5a/dd33d7d3cb0124f328d2d38fff0125.png)
[Cloud Native] DevOps (5): Integrating Harbor

三子棋的代码实现

Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis

MySQL忘记密码怎么办

Recursive implementation of the Tower of Hanoi problem

MySQL database installation (detailed)
随机推荐
Reinforcement learning: from entry to pit to shit
npm、nrm两种方式查看源和切换镜像
Create componentized development based on ILRuntime hot update
mysql基础知识(二)
EasyExcel的简单读取操作
MySQL开窗函数
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
Open Source Smart Future | 2022 OpenAtom Global Open Source Summit OpenAtom openEuler sub-forum was successfully held
【py脚本】批量二值化处理图像
[Linear Neural Network] softmax regression
VScode+ESP32快速安装ESP-IDF插件
Visual studio shortcuts that improve efficiency, summary (updated from time to time)
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
visual studio 那些提高效率的快捷键,总结(不时更新)
【云原生】DevOps(五):集成Harbor
The MySQL database installed configuration nanny level tutorial for 8.0.29 (for example) have hands
参考代码系列_1.各种语言的Hello World
重磅 | 开放原子校源行活动正式启动
产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开