Red Flag Linux system installed by default, does not have the database software, which can not meet our Java EE development needs, so we need to install their own database software, the preferred course is MySQL. Although in the Red Flag Tool CD, provides the MySQL 4.0 RPM package, but I still choose MySQL 5.0. The latest version of the software can be downloaded to the official MySQL website, as shown in the following illustration:
As you can see on the download page, 5.1 is beta and 6.0 is alpha, so we don't need to pursue the latest version, and we'll use 5.0. From the 5.0 version, MySQL is divided into community and Enterprise version, of course, the Enterprise version is for money, so we can only choose the community version.
MySQL is packaged in a variety of ways, you can download the source code directly, compile yourself, you can download the RPM package for a specific Linux system. I choose the non rpm packaging way, downloaded is a mysql-5.0.45-linux-i686.tar.gz file, the size of 77.5M. Of course, you can also choose for Red Hat Enterprise Linux 4 rpm package, because the Red Flag Linux system is released when it is announced to be compatible with the RPM package, and in the red flag provided by the tool CD, I see a lot of packages are Rhel 4, so you can determine, Red Flag Linux can at least support the RPM package in Rhel 4.
If you're using an RPM package, it's easy to install, and it's annoying that servers and client and other libraries are packaged separately and downloaded. And I downloaded a single compressed file more convenient, but after the decompression needs to go through some settings before you can use.
1, the first compression package decompression, placed to the/usr/mysql directory
2, the establishment of MySQL users
3. Run mysql_install_db Initialization database