1. Download the corresponding RPM from the official website

  1. Yum localinstall mysql80-community-release-el7-3.noarch.rpm
  2. Install server yum install mysql-community-server-y
  3. ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘XxXx@001’; ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘XxXx@001’;
  4. The remote access

    CREATE USER ‘root’@’%’ IDENTIFIED BY ‘PASSWORD’;

    GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ WITH GRANT OPTION;

    FLUSH PRIVILEGES;