1,在下载mysql源安装包
[[email protected]~]#wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
2安装mysql 源

[[email protected] ~]# yum -y localinstall mysql80-community-release-el7-3.noarch.rpm

3安装mysql

[[email protected] ~]# yum -y install mysql-community-server (时间较长,耐心等待…)

4启动Mysql服务

[[email protected] ~]# systemctl start mysqld

5设置开机启动

[[email protected] ~]# systemctl enable mysqld

[[email protected] ~]# systemctl daemon-reload

6修改mysql 密码

[[email protected] ~]# vi /var/log/mysqld.log有临时密码

[[email protected] ~]# mysql -u root -p

Enter password:

输入临时密码进入mysql命令行;

mysql> ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘******’;
出现下图就说明安装成功了,可以使用了;

1.阿里云ecs安装mysql
参考链接:https://www.jianshu.com/p/895638894ac2

相关文章:

  • 2021-12-14
  • 2021-12-20
  • 2021-11-11
  • 2021-08-12
  • 2021-11-27
  • 2022-12-23
  • 2021-12-10
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2021-11-28
  • 2021-12-18
  • 2021-12-10
  • 2021-08-31
  • 2022-02-12
相关资源
相似解决方案