Mysql binary Installation

Source: Internet
Author: User

Premise

Version mysql-5.5

Platform centos6.x

Add user

Useradd-m-s/sbin/nologin MySQL

Install the required packages

Yum-y Install compat-libstdc++-33.x86_64 libaio.x86_64

Installation

Tar xzvf mysql-5.5.43-linux2.6-x86_64.tar.gz

Mv-f mysql-5.5.43-linux2.6-x86_64/storage/server/

Ln-sf/storage/server/mysql-5.5.43-linux2.6-x86_64/storage/server/mysql

Chown-r mysql:mysql/storage/server/mysql/

# New MySQL Data directory

Mkdir-p/storage/data/mysql

Chown-r Mysql:mysql/storage/data/mysql

Initialization

scripts/mysql_install_db--user=mysql--basedir=/storage/server/mysql--datadir=/storage/data/mysql

Modifying a configuration file

Vim/etc/my.cnf

[Mysqld]port             3306 Socket           =/tmp/=/m2odata/server/=/m2odata/data/mysql

Boot (recommended with Mysqld_safe)

/m2odata/server/mysql/bin/mysqld_safe &

Security settings (make some security settings for the database based on script prompts)

/storage/server/mysql/bin/mysql_secure_installation

Mysql binary Installation

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.