加入收藏 | 设为首页 | 会员中心 | 我要投稿 汽车网 (https://www.0577qiche.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

mysql 5.7 rpm方式从下载到安装

发布时间:2023-05-11 14:21:13 所属栏目:MySql教程 来源:
导读:同步时间:

yum -y install ntp

whereis ntp

ntpdate time.nist.gov 同步时间命令,然后添加个计划任务。nist(national institut of标准技术)

crontab -e

*/10 * * * * ntpdate time.nist.gov
同步时间:

yum -y install ntp

whereis ntp

ntpdate time.nist.gov     同步时间命令,然后添加个计划任务。nist(national institut of标准技术)

crontab -e

*/10 * * * * ntpdate time.nist.gov

mysql 5.7安装:环境:mac 上的virtualBox虚拟机:NAT模式。OS:centos6.7。

tar -xf MysqL-5.7.19-1.el6.x86_64.rpm-bundle.tar

需要先卸载已有的MysqL:rpm -e --nodeps MysqL。。。。。rpm

按照以下顺序进行安装,因为它们之间存在依赖关系

common --> libs --> clients --> server

$ rpm -ivh MysqL-community-common-5.7.19-1.el6.x86_64.rpm
 
$ rpm -ivh MysqL-community-libs-5.7.19-1.el6.x86_64.rpm
 
$ rpm -ivh MysqL-community-clients-5.7.19-1.el6.x86_64.rpm
 
$ rpm -ivh MysqL-community-server-5.7.19-1.el6.x86_64.rpm
若出现这个错误:(这一错误我安装的时候并未遇到)

error: Failed dependencies: \
        libnuma.so.1()(64bit) is needed by MysqL-community-server-5.7.19-1.el6.x86_64 \
        libnuma.so.1(libnuma_1.1)(64bit) is needed by MysqL-community-server-5.7.19-1.el6.x86_64 \
        libnuma.so.1(libnuma_1.2)(64bit) is needed by MysqL-community-server-5.7.19-1.el6.x86_64
解决方法:

yum install -y numactl

(编辑:汽车网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章