Linux安装mysql 5.6.5+ 版本
作者:互联网
1、编辑mysql-connubity.repo文件,添加官方的yum源
vi /etc/yum.repos.d/mysql-community.repo
添加一下内容:
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
2、安装mysql
yum install mysql-community-server -y
3、启动mysql数据库
systemctl start mysqld
4、修改mysql数据库密码
grep 'temporary password' /var/log/mysqlg.log
mysqladmin -u roo -p password # 回车,输入原始密码,在输入新的密码
5、登录mysql
mysql -uroot -p'密码'
6、修改远程链接
gran all privileges on *.* to 'root'@'%' identified bby '密码' with grant option;
flush privileges;
标签:log,5.6,mysql,community,repo,密码,yum,Linux 来源: https://blog.csdn.net/qq_41841235/article/details/123166296