百度云盘:

链接: https://pan.baidu.com/s/1hv5rUWYK080hCuONqpSVCg 提取码: qhgp

安装说明:

https://www.jb51.net/article/138787.htm

操作记录

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

通过 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;

命令修改加密规则,MySql8.0 版本 和 5.0 的加密规则不一样,而现在的可视化工具只支持旧的加密方式。

通过 flush privileges; 命令刷新修该后的权限

通过以下命令,关闭 firewall(防火墙)

systemctl stop firewalld.service;systemctl disable firewalld.service;systemctl mask firewalld.service;

更多相关文章

  1. MySQL系列多表连接查询92及99语法示例详解教程
  2. Linux下MYSQL 5.7 找回root密码的问题(亲测可用)
  3. MySQL 什么时候使用INNER JOIN 或 LEFT JOIN
  4. 工作环境搭建(8) - CentOS7命令行安装Android(安卓)SDK
  5. android从服务器下载文件(php+apache+win7+MySql)
  6. 【有图】android通过jdbc连接mysql(附文件)
  7. CentOS 安装 Android
  8. CentOS 安装 Android
  9. android 通过php 连接 mysql

随机推荐

  1. Android界面刷新方法
  2. android4.0.3 修改启动动画和开机声音
  3. google编程
  4. Android桌面组件App Widget开发三步走
  5. android中版本webView中js不执行问题
  6. 异步任务加载网络数据——AsyncTask使用
  7. android studio中常用快捷键
  8. android 显示子系统零碎理解
  9. Service启动Actvity
  10. Eclipse下使用Android(安卓)Design Suppo