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. 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. 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. # groupadd mysql
1.Add MsyqlUser MysqlUser Group [plain]
- 1. # useradd-r-g mysql
2.Extract Mysql-5.5.20-linux2.6-i686.tar.gzTo /Usr/localEnter /Usr/local
[Plain]
- 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. # 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]
- # Ln-s mysql-5.5.20-linux2.6-i686 mysql
4.Enter MysqlDirectory
Pwd:/usr/local
[Plain]
- 1. # cd mysql