Unzip MySQL5.5 in Ubuntu11.10 to install

Source: Internet
Author: User
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

  1. Basedir=/Opt/mysql
  2. Datadir=/Opt/mysql/data

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.