标签:rpm安装 lis ora unit 安装 temporary sql arc 行修改
在MySQL官网中下载YUM源rpm安装包:https://dev.mysql.com/downloads/repo/yum/
# 下载mysql源安装包 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm # 安装mysql源 yum localinstall mysql57-community-release-el7-8.noarch.rpm
检查mysql源是否安装成功
yum repolist enabled | grep "mysql.*-community.*"
看到上图所示表示安装成功。
yum install mysql-community-server
systemctl start mysqld
查看mysql启动状态
systemctl status mysqld
systemctl enable mysqld
systemctl daemon-reload
mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码。通过下面的方式找到root默认密码,然后登录mysql进行修改:
grep ‘temporary password‘ /var/log/mysqld.log
红框位置显示临时密码
mysql -u root -p set password for ‘root‘@‘localhost‘=password(‘MyNewPass4!‘);
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘登录密码‘ with grant option; flush privileges;
标签:rpm安装 lis ora unit 安装 temporary sql arc 行修改
原文地址:https://www.cnblogs.com/mrma/p/10024850.html