1、下载服务器端及客户端两个文件:
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.29-0.rhel4.x86_64.rpm/from/http://mysql.ntu.edu.tw/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.29-0.rhel4.x86_64.rpm/from/http://mysql.ntu.edu.tw/
你也可以到这里下载你需要的版本http://dev.mysql.com/downloads/mysql/5.1.html#linux-rhel4-x86-64bit-rpms
2、安装客户端
如果已经安装某个版本的MySql则卸载:
# rpm -qa|grep mysql
mysqlclient10-3.23.58-4.RHEL4.1
mysql-4.1.20-1.RHEL4.1
# rpm -e mysqlclient10-3.23.58-4.RHEL4.1
# rpm -e mysql-4.1.20-1.RHEL4.1
由于,没有注册码,不能安装上面下载的RPM包,只好下载非RPM包来安装,下面拷自官方文档:
安装步骤
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
自动启动:
If you install MySQL from a source distribution or using a binary distribution format that does not install mysql.server automatically,
you can install it manually. The script can be found in the support-files directory under the MySQL installation directory or in a
MySQL source tree.
To install mysql.server manually, copy it to the /etc/init.d directory with the name mysql,
and then make it executable. Do this by changing location into the appropriate directory
where mysql.server is located and executing these commands:
shell> cp mysql.server /etc/init.d/mysql
shell> chmod +x /etc/init.d/mysql
shell> chkconfig --add mysql
虽然成功,尚待整理总结。
分享到:
相关推荐
RHEL Linux 7详细安装MySQL8.0.2的详细步骤,以及完整的安装包。非常详细。
MySQL之RHEL4安装.doc
RHEL服务器下架设MYSQL集群 RHEL服务器下架设MYSQL集群 RHEL服务器下架设MYSQL集群
rhel下安装mysql的两种方法
生RHEL5上安装MySQL.pdf
1. rpm -qa|grep -i mysql 如果安装可以卸载 2.创建用户和用户组 groupadd mysql 添加用户组 useradd -r -g mysql -p root mysql 创建一个不用登陆的用户 (useradd-s /sbin/nologin -g mysql mysql) ...
红帽redhat RHEL6系统下安装MySql的具体方案
安装时先卸载mariadb 和 已安装的mysql:rpm –qa | grep maria, rpm –qa | grep –i mysql,rpm –e xxx --nodeps。 mysql5.7 rpm安装顺序,common→libs→client→server→devel 安装过程报依赖错误,使用 rpm ...
详细介绍 在rhel4 下安装mysql 5.5.13,描述了相关资源下载,安装方法和环境配置。
包括 MySQL-server-community-5.1.60-1.rhel4.i386.rar MySQL-client-community-5.1.60-1.rhel4.i386.rar
本文记录了RHEL7.5下mysql 8.0.11安装教程,具体内容如下 首先去mysql官网下载mysql-8.0.11-el7-x86_64.tar 解压。 由于mysql初始化、启动都需要用到mysql用户,所以创建一个mysql用户: useradd -d /home/mysql -...
MySQL-client-5.5.8-1.rhel4.i386.rarMySQL-client-5.5.8-1.rhel4.i386.rar
MySQL-server-5.5.8-1.rhel4.i386.rarMySQL-server-5.5.8-1.rhel4.i386.rar
Red Hat Enterprise Linux Server release 7.6 上源码编译安装 Mysql 8.0.X
本文在redhat server6.0下,通过rpm包安装了mysql5.7,并解决了部分问题,初始化了mysql数据库
MySQL-server-community-5.1.60-1.rhel4.i386.rpm,linux下安装MySQL的安装包
MySQL-client-community-5.0.90-0.rhel4.i386.rpm 安装包
数据库管理\RHEL平台下MYSQL群集配置.
MySQL-client-community-5.1.60-1.rhel4.i386.rpm