+++++++++++++++++++++++++++++++++++++++++++
标题:MySQL RPM二进制安装
时间:2019年2月24日
内容:MySQL RPM二进制安装
作者:Bruce
重点:MySQL RPM二进制安装
+++++++++++++++++++++++++++++++++++++++++++
安装流程指导:http://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
部分依赖软件:http://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/
软件下载链接:https://dev.mysql.com/downloads/mysql/5.7.html#downloads(1d614898e91b80581ca599c21c930221)
安装常见报错:安装mysql server安装需求mysql-community-client、mysql-community-common(字符集)、mysql-community-libs
1. MySQL的RPM软件包校验
# md5sum mysql-5.7.25-1.el6.x86_64.rpm-bundle.tar
2. 安装MySQL数据库软件
# tar xf mysql-5.7.25-1.el6.x86_64.rpm-bundle.tar
# yum -y install mysql-community-common-5.7.25-1.el6.x86_64.rpm
# yum -y install mysql-community-libs-5.7.25-1.el6.x86_64.rpm
# yum -y install mysql-community-client-5.7.25-1.el6.x86_64.rpm
# yum -y install mysql-community-server-5.7.25-1.el6.x86_64.rpm
3. 启动并配置MySQL数据库
# service mysqld start
# ps -ef |grep mysqld
# chkconfig mysqld on
# chkconfig --list |grep mysqld
4. 获取数据库初始化密码并连接到MySQL
# cat /var/log/mysqld.log |grep password
# mysql -prgU*d3,sqj:Y
mysql> alter user root@"localhost" identified by "New_PASSword1234";
如果是通过yum软件仓库配置安装时需要注意一下几点:
第一:确定需要安装数据库的版本
第二:配置yum-config-manager,指定需要安装的数据库版本。命令如下:
# yum-config-manager --disable/--enable mysql57-community
第三:yum软件仓库默认安装GA的最新版本
标签:5.7,二进制,MySQL,community,yum,mysql,64,RPM
来源: https://www.cnblogs.com/lv1572407/p/10427506.html