centos7安装mysql8

  1. 官网下载对应的rpm
    centos7安装mysql8_第1张图片

centos7安装mysql8_第2张图片

  1. 本地安装
    yum localinstall mysql80-community-release-el7-3.noarch.rpm
  2. 安装server
    yum install mysql-community-server -y
  3. 修改密码(大写小写字符,8位)
    ALTER USER 'root'@'localhost' IDENTIFIED BY 'XxXx@001';
  4. 远程访问
    CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
    GRANT ALL PRIVILEGES ON . TO 'root'@'%' WITH GRANT OPTION;
    FLUSH PRIVILEGES;

你可能感兴趣的:(mysqlcentos)