Java Development in Linux Environment (v): Installing database servers, HTTP servers, and mail servers

Source: Internet
Author: User
Tags gz file mail

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

Related Article

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.