1.查询安装的包
[root@TrueEdi ~]# rpm -qa | grep -i '^mysql-'
mysql-server-4.1.12-3.RHEL4.1
MySQL-shared-compat-5.0.67-0.rhel4
mysql-4.1.12-3.RHEL4.1
MySQL-python-1.0.0-1.RHEL4.1
mysql-bench-4.1.12-3.RHEL4.1
mysql-devel-4.1.12-3.RHEL4.1
2.卸载包
[root@TrueEdi ~]# rpm --nodeps -ev mysql-server-4.1.12-3.RHEL4.1
[root@TrueEdi ~]# rpm --nodeps -ev MySQL-shared-compat-5.0.67-0.rhel4
[root@TrueEdi ~]# rpm --nodeps -ev mysql-4.1.12-3.RHEL4.1
[root@TrueEdi ~]# rpm --nodeps -ev MySQL-python-1.0.0-1.RHEL4.1
[root@TrueEdi ~]# rpm --nodeps -ev mysql-bench-4.1.12-3.RHEL4.1
[root@TrueEdi ~]# rpm --nodeps -ev mysql-devel-4.1.12-3.RHEL4.1
3.重新安装包
[root@TrueEdi ~]# rpm -ivh /opt/MySQL-client-community-5.0.67-0.rhel4.i386.rpm
warning: /opt/MySQL-client-community-5.0.67-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
[root@TrueEdi ~]# rpm -ivh /opt/MySQL-devel-community-5.0.67-0.rhel4.i386.rpm
warning: /opt/MySQL-devel-community-5.0.67-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-devel-community ########################################### [100%]
[root@TrueEdi ~]# rpm -ivh /opt/MySQL-shared-community-5.0.67-0.rhel4.i386.rpm
warning: /opt/MySQL-shared-community-5.0.67-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-shared-community ########################################### [100%]
[root@TrueEdi ~]# rpm -ivh /opt/MySQL-shared-compat-5.0.67-0.rhel4.i386.rpm
warning: /opt/MySQL-shared-compat-5.0.67-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
file /usr/lib/libmysqlclient.so.15.0.0 from install of
MySQL-shared-compat-5.0.67-0.rhel4 conflicts with file from package
MySQL-shared-community-5.0.67-0.rhel4
file /usr/lib/libmysqlclient_r.so.15.0.0 from install of
MySQL-shared-compat-5.0.67-0.rhel4 conflicts with file from package
MySQL-shared-community-5.0.67-0.rhel4
[root@TrueEdi ~]# rpm -ivh /opt/MySQL-server-community-5.0.67-0.rhel4.i386.rpm
warning: /opt/MySQL-server-community-5.0.67-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h TrueEdi password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Notes regarding SELinux on this platform:
=========================================
The default policy might cause server startup to fail because it is
not allowed to access critical files. In this case, please update
your installation.
The default policy might also cause inavailability of SSL related
features because the server is not allowed to access /dev/random
and /dev/urandom. If this is a problem, please do the following:
1) install selinux-policy-targeted-sources from your OS vendor
2) add the following two lines to /etc/selinux/targeted/src/policy/domains/program/mysqld.te:
allow mysqld_t random_device_t:chr_file read;
allow mysqld_t urandom_device_t:chr_file read;
3) cd to /etc/selinux/targeted/src/policy and issue the following command:
make load
Starting MySQL.[ \u786e\u5b9a ]
Giving mysqld 2 seconds to start
分享到:
相关推荐
超详细的操作步骤, 在Redhat linux 7.5版本中安装 mysql 5.6版本的数据库. 1 卸载已有mysql, 使用yum(附带yum源的设置步骤)安装依赖 2 下载mysql 5.6文件 3 上传文件到linux 4 安装rpm包 5 设置可远程连接 6 ...
在Redhat下安装Oracle10g.pdf 在RedHat Enterprise Linux 5下安装JDK.doc REdHat Linux 5 tomcat 的安装及环境的配置.doc
本文详细说明如何在RedHat Linux7.2安装MySQL5.7的方法
大神总结的RedHat Linux操作系统安装规范 大神总结的RedHat Linux操作系统安装规范 大神总结的RedHat Linux操作系统安装规范
本次采用二进制安装linux mysql数据库 二进制(Binary Package) 优点 安装简单;可以安装到任何路径下,灵活性好;一台服务器可以安装多个MySQL 缺点 已经经过编译,性能不如源码编译的好;不能灵活定制编译参数 ...
NULL 博文链接:https://my5622576.iteye.com/blog/411224
RedHat Linux安装图解RedHat Linux安装图解RedHat Linux安装图解RedHat Linux安装图解
在RedHat 5.4 Linux系统下安装MYSQL5.0,以服务方式启动、停止和重启MYSQL数据库.
RedHat Linux 源码安装MYSQL步骤.pdfRedHat Linux 源码安装MYSQL步骤.pdf
redhat linux手动RPM安装gcc,g++
REDHAT linux下安装MYSQL.docx
Redhat Linux 5.8 安装手册
redhat linux安装使用指南 redhat linux安装使用指南
Linux RedHat 下安装MYSQL步骤
RedHat Linux9.0 硬盘安装全攻略
在redhat linux es4上安装informix11.5过程
RHEL Linux 7详细安装MySQL8.0.2的详细步骤,以及完整的安装包。非常详细。
vmware下redhat linux9 的详细安装步骤
Redhat linux 6安装Mysql 5.6二进制包.docx
深圳信盈达嵌入式Linux培训资料,RedHat Linux虚拟机7.0安装(另有鼠标释放工具的安装过程)