Install MySQL 5 on Redhat 4

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.