Ubuntu11.10 environment. [Most commands need root permission, with root operation, or command plus sudo] More Oracle related information see Oracle topics page http://www.linuxidc.com/topicnews.aspx? Tid = 121 download MySQL installation-free/binary software (No compilation required) http://www.mysql.com/downloads/mysql/compared to I downloaded MySQL
Ubuntu 11.10 environment. [Most commands require the root permission. You can use the root operation or add sudo to the command]
For more information about Oracle, see Oracle topics page http://www.linuxidc.com/topicnews.aspx? Tid = 12
1. Download MySQL installation-free/binary software (No compilation) http://www.mysql.com/downloads/mysql/
For example, I downloaded mysql-5.5.2-m2-linux-i686-glibc23.tar.gz.
2. Create a mysql group, create a mysql user, and add the user to the mysql group.
# Groupadd mysql
# Useradd-g mysql
3. Extract
# Cd ~ /Downloads
# Tar zxvf mysql-5.5.2-m2-linux-i686-glibc23.tar.gz
Move to/opt/mysql
# Music mysql-5.5.2-m2-linux-i686-glibc23/opt/mysql
# Cd/opt/mysql
# Chown-R mysql.
# Chgrp-R mysql.
# Scripts/mysql_install_db -- user = mysql -- basedir =/opt/mysql
# Chown-R root.
# Chown-R mysql data
4. Configuration File
# Cp support-files/my-medium.cnf/etc/my. cnf
# Vi/etc/my. cnf
[Mysqld] add to configuration
- Basedir=/Opt/mysql
- Datadir=/Opt/mysql/data