博客
关于我
CentOS 7 安装 MySQL 8.0 图文教程
阅读量:111 次
发布时间:2019-02-26

本文共 575 字,大约阅读时间需要 1 分钟。

安装MySQL 8.0教程

安装MySQL 8.0之前,推荐使用Xshell6连接服务器工具

  • 安装前更新系统所有包确保系统环境是最新的,可以运行以下命令:sudo yum update

  • 配置MySQL安装源下载并安装MySQL 8.0社区版源文件:sudo rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

  • 安装MySQL 8.0运行以下命令安装:sudo yum --enablerepo=mysql80-community install mysql-community-server

  • 启动MySQL服务启动MySQL服务并验证状态:sudo service mysqld start检查服务状态:service mysqld status

  • 查看root临时密码找到临时密码方法:grep "A temporary password" /var/log/mysqld.log

  • 更改临时密码首先使用临时密码登录:mysql -u root -p输入临时密码后按回车

  • 然后修改root密码:ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';

    注意事项:新密码请确保复杂且记牢。

    转载地址:http://fouk.baihongyu.com/

    你可能感兴趣的文章
    php curl_init函数用法(http://blog.sina.com.cn/s/blog_640738130100tsig.html)
    查看>>
    php curl_multi批量发送http请求
    查看>>
    php curl请求微信发红包接口出现错误:Peer's Certificate issuer is not recognized.
    查看>>
    PHP curl请求错误汇总和解决方案
    查看>>
    php declare(ticks=1)
    查看>>
    UVA 10474
    查看>>
    php echo 输出 锘?... 乱码问题
    查看>>
    PHP empty、isset、isnull的区别
    查看>>
    ReferenceQueue的使用
    查看>>
    PHP FastCGI进程管理器PHP-FPM的架构
    查看>>
    referenceQueue用法
    查看>>
    Springboot处理跨域的方式(附Demo)
    查看>>
    php flush()刷新不能输出缓冲的原因分析
    查看>>
    Referenced classpath provider does not exist: org.maven.ide.eclipse.launchconfig
    查看>>
    Refactoring-Imporving the Design of Exsiting Code — 代码的坏味道
    查看>>
    PHP imap 远程命令执行漏洞复现(CVE-2018-19518)
    查看>>
    php include和require
    查看>>
    ref 和out 区别
    查看>>
    php JS 导出表格特殊处理
    查看>>
    php json dom解析
    查看>>