1, download the following two installation packages from 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, install the server package:
# 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
If you encounter this error, you need to uninstall the original MYSQL4 installation package first:
# RPM-E Mysql-4.1.20-1.rhel4.1–nodeps
# RPM-E Mysql-4.1.20-2.rhel4.1.0.1.x86_64–nodeps
To reinstall:
# 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 did 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 would also give you the option of removing the test
Databases and anonymous user created by default. This is
Strongly recommended for production servers.
The manual for more instructions.
Please have a 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 the 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, 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