写在前面:
centos7用的是arm架构的,和平常的不一样。
用的 mysql5.7.27
给链接:
链接: https://pan.baidu.com/s/1jKdZczecTvGxldgpCQJyng 提取码: 64po
进入主题:
- 将mysql安装到ARM服务器
/opt/local/
目录下 - 安装依赖包:yum install -y libaio*
- 安装依赖包:yum -y install numactl
- 解压 mysql:
tar -zxvf mysql-5.7.27-aarch64
- 创建mysql用户:useradd mysql
更换组:chown -R mysql:mysql mysql-5.7.27-aarch64/
- ln -sf /opt/local/
mysql-5.7.27-aarch64
/my.cnf /etc/my.cnf - cp -rf /opt/local/
mysql-5.7.27-aarch64
/extra/lib* /usr/lib/ - # 设置开机启动
- cp -rf /opt/local/mysql-5.7.27-aarch64/support-files/mysql.server /etc/init.d/mysqld
- chmod +x /etc/init.d/mysqld
- systemctl enable mysqld
</mysqld.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig mysqld on