浅析centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar
2020-01-29 12:26
1561 查看
百度云盘:
链接: https://pan.baidu.com/s/1hv5rUWYK080hCuONqpSVCg 提取码: qhgp
安装说明:
https://www.jb51.nethttps://www.geek-share.com/detail/2735471268.html
操作记录
mkdir mysql 40 ll 41 cd my 42 cd mysql/ 43 ll 45 tar -xvf mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar 46 ll 47 rpm -ivh mysql-community-common-8.0.19-1.el7.x86_64.rpm --nodeps --force 48 rpm -ivh mysql-community-libs-8.0.19-1.el7.x86_64.rpm --nodeps --force 49 rpm -ivh mysql-community-client-8.0.19-1.el7.x86_64.rpm --nodeps --force 50 rpm -ivh mysql-community-server-8.0.19-1.el7.x86_64.rpm --nodeps --force 51 rpm -qa | grep mysql 52 mysqld --initialize; 53 chown mysql:mysql /var/lib/mysql -R; 54 systemctl start mysqld.service; 55 systemctl enable mysqld; 56 cat /var/log/mysqld.log | grep password 57 mysql -uroot -p 58 systemctl stop firewalld.service; 59 systemctl disable firewalld.service; 60 systemctl mask firewalld.service; 61 ifconfig
通过 cat /var/log/mysqld.log | grep password
命令查看数据库的密码
通过 mysql -uroot -p
敲回车键进入数据库登陆界面
通过 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
命令来修改密码
通过 exit; 命令退出 MySQL,然后通过新密码再次登陆
.通过以下命令,进行远程访问的授权
create user 'root'@'%' identified with mysql_native_password by 'root'; grant all privileges on *.* to 'root'@'%' with grant option; flush privileges;
通过 ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER
;
命令修改加密规则,MySql8.0 版本 和 5.0 的加密规则不一样,而现在的可视化工具只支持旧的加密方式。
通过 flush privileges;
命令刷新修该后的权限
通过以下命令,关闭 firewall(防火墙)
systemctl stop firewalld.service; systemctl disable firewalld.service; systemctl mask firewalld.service;
总结
以上所述是小编给大家介绍的centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
您可能感兴趣的文章:
相关文章推荐
- centos7安装mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar
- CentOS6.5安装mysql-5.7.18-1.el6.x86_64.rpm-bundle.tar
- 【待完成】CentOS6.5安装mysql-cluster-community-7.5.6-1.el6.x86_64.rpm-bundle.tar
- CentOS6.5安装mysql-5.7.18-1.el6.x86_64.rpm-bundle.tar
- centos7安装mysql-8.0.15-1.el7.x86_64.rpm-bundle.tar和远程访问
- centos7安装mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar
- Centos7安装mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar
- MySQL-5.5.62-1.el7.x86_64.rpm-bundle.tar安装手记
- centos7安装mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar
- Linux安装MySQL-5.6.24-1.linux_glibc2.5.x86_64.rpm-bundle.tar
- MySQL-5.5.49-1.linux2.6.x86_64.rpm-bundle.tar安装问题
- linux6.5安装MySQL-5.5.53-1.el6.x86_64.rpm-bundle.tar
- Centos 7.x 系安装 mysql-community-common-5.7.13-1.el7.x86_64.rpm
- linux 下安装mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
- Linux安装MySQL-5.6.24-1.linux_glibc2.5.x86_64.rpm-bundle.tar
- Linux安装MySQL-5.6.24-1.linux_glibc2.5.x86_64.rpm-bundle.tar
- CentOS6.9安装mysql-5.7.18-1.el6.i686.rpm-bundle.tar
- 安装mysql5.6(MySQL-5.6.27-1.linux_glibc2.5.x86_64.rpm-bundle.tar)遇到的问题
- linux安装mysql-5.7.25-1.el6.x86_64.rpm-bundle.tar步骤
- MySQL学习4_CentOS/Linux下的MySQL安装文件类型:rpm package,rpm bundle和Compressed TAR Archive有什么区别