Install MySQL 5.5.x in Ubuntu 11.10

Source: Internet
Author: User

Introduction:

Two installation methods: Binary File Installation andCompile and install(This article uses the binary installation method. If you are interested, try to compile and install your own shoes)

Environment

Ubuntu-11-10 32Bit


Preparation

0. ObtainMysql-5.5.20-linux2.6-i686.tar.gzBinary Installation File


Procedure:

Mysql official website download pageSelectLinux-GenericUnderLinux-Generic 2.6 (x86, 32-bit), Compressed (The number of digits is yours.LinuxDepends on the number of digits. I am using32So I chose32Bit versionMysql)

You can use the wget command in ubuntu or any download tool, as long as there is a mysql tar.gz Installation File.

[Plain]
  1. 1. wget http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.20-linux2.6-i686.tar.gz


1.Install MysqlUsed dependency [plain]
  1. 1. sudo apt-get install libaio1
Installation Process

For installation steps, see the official mysql installation documentation.
# Indicates that the current user is a root user.
$ Indicates the current normal user
Pwd indicates the current directory



0.Add MysqlUser Group [plain]
  1. 1. # groupadd mysql

1.Add MsyqlUser MysqlUser Group [plain]
  1. 1. # useradd-r-g mysql

2.Extract Mysql-5.5.20-linux2.6-i686.tar.gzTo /Usr/localEnter /Usr/local

[Plain]
  1. 1. # cd/usr/local

MyTar.gzThe file path is/Home/user/mysql-5.5.20-linux2.6-i686.tar.gzAccording to yourMysqlInstallation File Path Adjustment Command Parameters
Pwd:/usr/local

[Plain]
  1. 1. # tar zxvf/home/user/mysql-5.5.20-linux2.6-i686.tar.gz

3.In /Usr/localAdd MysqlSoft connection pointing to the decompressed folder

Pwd:/usr/local


[Plain]
  1. # Ln-s mysql-5.5.20-linux2.6-i686 mysql
4.Enter MysqlDirectory

Pwd:/usr/local

[Plain]
  1. 1. # cd mysql
  • 1
  • 2
  • Next Page

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.