2011年9月7日水曜日

remove old mysql and install new mysql on rhel 5

[g]# rpm -q cyrus-sasl
cyrus-sasl-2.1.19-14
cyrus-sasl-2.1.19-14
[g]# rpm -qa | grep cyrus
cyrus-sasl-2.1.19-14
cyrus-sasl-sql-2.1.19-14
cyrus-sasl-md5-2.1.19-14
cyrus-sasl-plain-2.1.19-14
cyrus-sasl-ntlm-2.1.19-14
cyrus-sasl-md5-2.1.19-14
cyrus-sasl-devel-2.1.19-14
cyrus-sasl-gssapi-2.1.19-14
cyrus-sasl-2.1.19-14
cyrus-sasl-plain-2.1.19-14
[g]# rpm -e cyrus-sasl-sql
[g]# ls
MySQL-server-5.5.15-1.linux2.6.x86_64.rpm  mysql-5.5.15-linux2.6-x86_64.tar.gz
MySQL-server-5.5.15-1.rhel4.x86_64.rpm
[g]# rpm -Uvh MySQL-server-5.5.15-1.rhel4.x86_64.rpm
警告: MySQL-server-5.5.15-1.rhel4.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
エラー: Failed dependencies:
        MySQL conflicts with mysql-4.1.22-2.el4.i386
[g]# rpm -e mysql
[g]# rpm -Uvh MySQL-server-5.5.15-1.rhel4.x86_64.rpm
警告: MySQL-server-5.5.15-1.rhel4.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 td-agtmf-t01 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

0 件のコメント:

コメントを投稿