Teach you how to install MySQL on the Linux/unix platform

Source: Internet
Author: User
Mysql|unix

"Guide" describes how to install MySQL under the Linux/unix platform.

Installation steps under Linux:

It is recommended to use the RPM tool for MySQL database installation under Linux. The current MySQL RPM installation package is built on the SUSE Linux 7.3 system platform, but can also be installed in most other Linux platforms that support RPM and glibc. If you choose a generic RPM installation package, then RPM will be statically linked to the Linux thread. The following steps perform a standard minimized installation:

Shell> rpm-i mysql-server-version.i386.rpm

Shell> rpm-i mysql-client-version.i386.rpm

Remember to modify the initial default password when the installation is complete.

Installation steps in a UNIX environment:

Using the. Tar binary file installation requires the GNU Gunzip tool, which is the basic steps below

shell> Groupadd MySQL

shell> useradd-g MySQL MySQL

Shell> cd/usr/local

Shell> Gunzip </path/to/mysql-version-os.tar.gz | Tar xvf-

shell> ln-s Full-path-to-mysql-version-os MySQL

shell> CD MySQL

Shell> scripts/mysql_install_db--user=mysql

Shell> chown-r Root.

shell> chown-r MySQL Data

Shell> chgrp-r MySQL.

Shell> Bin/mysqld_safe--user=mysql &

Remember to modify the initial default password when the installation is complete.



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.