rpm 安装(rpm 安装yum)

更新时间:2023-03-01 18:02:46 阅读: 评论:0

rpm 安装1.下载安装包并解压安装

点击下载rpm包→阿里云盘分享(本次使用的是mysql5.7.29的安装包)

tar xzvf mysql.tar.gz#卸载本地的mariadb、mysqlrpm -qa | grep -i -E mariadb|mysql | xargs -n1 rpm -e --nodeps rpm -ivh 01_mysql-community-common-5.7.29-1.el7.x86_64.rpm rpm -ivh 02_mysql-community-libs-5.7.29-1.el7.x86_64.rpm rpm -ivh 03_mysql-community-libs-compat-5.7.29-1.el7.x86_64.rpm rpm -ivh 04_mysql-community-client-5.7.29-1.el7.x86_64.rpm rpm -ivh 05_mysql-community-rver-5.7.29-1.el7.x86_64.rpm --force --nodeps systemctl start mysqld && systemctl enable mysqld.rvice2.查询数据库初始密码

grep "temporary password is generated" /var/log/mysqld.log

3.初始化数据库

mysql_cure_installation

4.进行数据库密码和安全设置

Securing the MySQL rver deployment.Enter password for ur root: #输入第四步获取的密码The existing password for the ur account root has expired. Plea t a new password.New password: #设置新密码Re-enter new password: #再输入一遍#密码一般需要大小写数字+特殊符号Estimated strength of the password: 100 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y #是否更改密码 yBy default, a MySQL installation has an anonymous ur,allowing anyone to log into MySQL without having to havea ur account created for them. This is intended only fortesting, and to make the installation go a bit smoother.You should remove them before moving into a productionenvironment.Remove anonymous urs? (Press y|Y for Yes, any other key for No) : #是否删除匿名用户?按y | y表示是,按任何其他键表示否,这里我直接跳过... skipping.Normally, root should only be allowed to connect from'localhost'. This ensures that someone cannot guess atthe root password from the network.Disallow root login remotely? (Press y|Y for Yes, any other key for No) : #是否禁用root用户远程登录,根据自己的需求选择Y/n并回车,我这里选择允许所以直接跳过... skipping.By default, MySQL comes with a databa named 'test' thatanyone can access. This is also intended only for testing,and should be removed before moving into a productionenvironment.Remove test databa and access to it? (Press y|Y for Yes, any other key for No) : #是否删除test数据库,直接回车... skipping.Reloading the privilege tables will ensure that all changesmade so far will take effect immediately.Reload privilege tables now? (Press y|Y for Yes, any other key for No) : #是否重新加载权限表,直接回车... skipping.All done!

本文发布于:2023-02-28 20:14:00,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/zhishi/a/167766496679624.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:rpm 安装(rpm 安装yum).doc

本文 PDF 下载地址:rpm 安装(rpm 安装yum).pdf

标签:rpm   yum
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 实用文体写作网旗下知识大全大全栏目是一个全百科类宝库! 优秀范文|法律文书|专利查询|