加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

在RedHat 4上安装MySql 5

发布时间:2016-01-14 02:22:32 所属栏目:MySql教程 来源:网络整理
导读:1, 从http://www.mysql.com/downloads/ 上下载以下两个安装包: MySQL-server-5.5.8-1.linux2.6.x86_64.rpm MySQL-client-5.5.8-1.linux2.6.x86_64.rpm 2, 安
1, 从http://www.mysql.com/downloads/ 上下载以下两个安装包:

MySQL-server-5.5.8-1.linux2.6.x86_64.rpm

MySQL-client-5.5.8-1.linux2.6.x86_64.rpm

2, 安装server包:

# rpm -ivh MySQL-server-5.5.8-1.linux2.6.x86_64.rpm

warning: MySQL-server-5.5.8-1.linux2.6.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5

error: Failed dependencies:

       MySQL conflicts with mysql-4.1.20-1.RHEL4.1.i386

       MySQL conflicts with mysql-4.1.20-2.RHEL4.1.0.1.x86_64

碰到这个错误,需要先把原来的mysql4安装包卸载掉:

# rpm -e mysql-4.1.20-1.RHEL4.1 –nodeps

# rpm -e mysql-4.1.20-2.RHEL4.1.0.1.x86_64 –nodeps

重新进行安装:

# rpm -ivh MySQL-server-5.5.8-1.linux2.6.x86_64.rpm

warning: MySQL-server-5.5.8-1.linux2.6.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5

Preparing...                ########################################### [100%]

  1:MySQL-server           ########################################### [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 browsing04.china.nsn-net.net 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!  

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

(编辑:云计算网_泰州站长网)

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

    热点阅读