一.Linux版本
cat /proc/version
cat /etc/redhat-release
二.MySQL安装
2.1 检查是否已安装MySQL
rpm -qa | grep -i mysql
2.2 解压安装文件到指定文件夹
tar -xvf 对应mysql的安装包名字.tar -c 解压到指定目录下
tar -xvf mysql-5.7.43-1.el7.x86_64.rpm-bundle.tar -C mysql
2.3MySQL安装,安装顺序community>libs>client>server
备注:使用rpm -ivh mysql-community-common-5.7.43-1.el7.x86_64.rpm时,下一步rpm -ivh mysql-community-libs-5.7.43-1.el7.x86_64.rpm报错,报错信息如下图所示:
yum -y localinstall mysql-community-common-5.7.43-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.43-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.43-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.43-1.el7.x86_64.rpm执行报错,以下模块无法使用
rpm -ivh mysql-community-server-5.7.43-1.el7.x86_64.rpm --force --nodeps
3.启动MySQL服务
== 每次开机都要手动启动mysql ==
systemctl start mysqld
== 开机时自动开启mysql ==
systemctl enable mysqld
== 停止mysql服务器==
service mysqld stop
==启动mysql服务器==
service mysqld start
== 查看mysql是否启动==
service mysqld status
标签:x86,部署,mysql,43,community,64,Linux,MySQL,rpm From: https://www.cnblogs.com/zdhxiangni/p/17767546.html