Install MySQL Server 5.0 on Linux

Source: Internet
Author: User

I use binary for installation, filename mysql-standard-5.0.18-linux-i686-glibc23.tar.gz

[1] Extract the above file to a certain place, and MySQL so directory name to MySQL, the result should be as/home/jiang/mysql

[2] According to the MySQL directory under the install-binary file to install

Plus user group MySQL, as well as user MySQL; the command does not need to be modified

shell> Groupadd MySQL

shell> useradd-g MySQL MySQL

The main purpose of the following three steps is to make a link to the MySQL extract directory, and put it in the usr/local directory.

The first is to enter the/usr/local directory, which need not be modified

Shell> cd/usr/local

This step can not be needed, because the decompression has been

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

Make a link to/home/jiang/mysql, put it in/usr/local, the name of the link is MySQL.

This command is modified to ln-s/home/jiang/mysql MySQL

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

Into the/home/jiang/mysql directory,/usr/local/mysql is the link to/home/jiang/mysql

shell> CD MySQL

Initialize MySQL (This step can be abbreviated if MySQL has been installed previously); The command does not need to be modified

Shell> scripts/mysql_install_db--user=mysql

Change of ownership; The command does not need to be modified

Shell> chown-r Root.

shell> chown-r MySQL Data

Shell> chgrp-r MySQL.

Start the MySQL server: No need to modify the command

Shell> Bin/mysqld_safe--user=mysql &

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.