redhat AS4 下MYSQL 5.0的安裝
我們要學會用rpm -qa 這個命令,查詢我們安裝過的相應的mysql的RPM,然後把這些包一個一個的卸掉
[root@localhost f]# rpm -qa | grep mysql
mysql-4.1.12-3.RHEL4.1
解除安裝過程:是從最下面的一個包開始,因為有些東西是有順序的。方法是:
[root@svnserver]# rpm mysql-4.1.12-3.RHEL4.1
如果在解除安裝mysql-devel出現如下的錯誤:
[root@localhost f]# rpm -e mysql-4.1.12-3.RHEL4.1
error: Failed dependencies:
libmysqlclient.so.14 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386
libmysqlclient.so.14 is needed by (installed) dovecot-0.99.11-2.EL4.1.i386
那麼,你需要按倒序來先刪除dovecot-0.99.11-2.EL4.1.i386,然後是cyrus-sasl-sql-2.1.19-5.EL4.i386,最後,你可以完全刪除mysql-devel,其他的類似。
[root@localhost f]# rpm -e dovecot-0.99.11-2.EL4.1.i386
[root@localhost f]# rpm -e cyrus-sasl-sql-2.1.19-5.EL4.i386
開始解除安裝
[root@localhost f]# rpm -e mysql-4.1.12-3.RHEL4.1
安裝MYSQL
[root@localhost f]# rpm -i MySQL-server-community-5.0.45-0.rhel4.i386.rpm
[root@localhost f]# rpm -i MySQL-client-community-5.0.45-0.rhel4.i386.rpm
[root@localhost f]# mysqladmin -u root password '123456'
完成。
[root@localhost f]# rpm -i MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
rpm -i MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.51a-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
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 localhost.localdomain 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
Support MySQL by buying support/licenses at
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/143526/viewspace-1031418/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql在redhat as4上的安裝過程MySqlRedhat
- RedHat AS4 下安裝oracle10gRedhatOracle
- Redhat9.2 安裝MySQL5.0RedhatMySql
- RedHat Enterprise AS4 硬碟安裝心得(轉)Redhat硬碟
- oracle10g for redhat as4 安裝過程。OracleRedhat
- RedHat Enterprise AS4硬碟安裝步驟(轉)Redhat硬碟
- pex+linux redhat as4自動安裝薦LinuxRedhat
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- RedHat5下安裝Mysql詳解RedhatMySql
- [zt] Redhat AS4上安裝64位Oracle9204RedhatOracle
- Centos7或RedHat7下安裝MysqlCentOSRedhatMySql
- Redhat AS4 for x86_64上安裝Oracle 9204 RAC概述RedhatOracle
- redhat as4 安裝oracle 9204 rac啟動Oracle Cluster Manager報錯!RedhatOracle
- 安裝Oracle10201 for REDHAT AS4 x86_64OracleRedhat
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- redhat as4 64位安裝oracle10.2.0.1建庫的時候報錯RedhatOracle
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- Redhat linux AS4 環境下iSCSI協議配置RedhatLinux協議
- 在RedHat Linux 7.3下安裝Apache + PHP + Mysql + JDK + Resin (轉)RedhatLinuxApachePHPMySqlJDK
- Redhat 7 下安裝達夢7Redhat
- 在redhat 下安裝 CVS(轉)Redhat
- (轉)redhat下安裝oracle,設定redhat核心引數RedhatOracle
- 安裝MySQL-Cluster7.2.5(redhat6.4)MySqlRedhat
- Fedora Core 5.0 安裝教程{下載}(轉)
- 在Linux操作下解除安裝,安裝redhat自帶的JDKLinuxRedhatJDK
- homebrew下載安裝及mysql的下載安裝MySql
- Oracle 10g 在linux redhat as4 系統安裝圖解全過程Oracle 10gLinuxRedhat圖解
- Redhat 5 下 Oracle10g 安裝RedhatOracle
- 在redhat下網路安裝gentoo(轉)Redhat
- Redis 5.0 安裝Redis
- RedHat 6.4原始碼方式安裝mysql5.5Redhat原始碼MySql
- 【NinGoo】Redhat上安裝Perl DBD::mysql模組GoRedhatMySql
- 升級VMWARE中REDHAT AS4核心Redhat
- redhat安裝dockerRedhatDocker
- 在Redhat9下安裝Oracle9RedhatOracle
- RedHat 9.0下安裝igenus實錄(轉)Redhat
- 在RedHat下安裝apache jserv 1.1.2(轉)RedhatApacheJS
- MySQL的下載和安裝MySql