CENTOS/RHEL7 Source Installation Mysql5.5.22

Source: Internet
Author: User

This article takes CentOS7 as an example, introduces the MySQL source installation!


Environment Introduction:

Operating system: CENTOS7 (Select GNOME Desktop and development tools during installation)

Software: mysql5.5.22.tar.gz


To start the installation:

Pre-installation Environment preparation: Yum Install ncurses ncurses-devel cmake

1. Create MySQL users and groups

# Groupadd MySQL

# useradd Mysql-g mysql-s/sbin/nologin-r

2. Build source code

# tar ZXVF mysql5.5.22.tar.gz

# CD mysql5.5.22

# CMake.

# make

# make Install

3. Configure and initialize after installation

# Cd/usr/local/mysql

# chown Mysql.mysql. -R

# scripts/mysql_install_db--user=mysql

# chown Root. -R

# chown MySQL Data-r

# CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF

# Bin/mysqld_safe--user=mysql &

# scripts/mysql_secure_installation [for deleting MySQL anonymous user and setting root password]

4. Testing

# mysql-uroot-p

# Enter password:****

Mysql>


Summary: Although MySQL was acquired by Oracle, but still a very extensive database in the current market, after the acquisition of MySQL, open source mariadb is basically compatible with MySQL, and in the functional performance than MySQL is more powerful!


According to a recent community introduction, the most used database in 2014 is mongodb (between SQL and NoSQL), followed by Redis (Key-Value NoSQL database), and no doubt Redis is an ideal alternative to memcache , which solves the problem that memcache cannot persist data.

This article is from the "Keyman" blog, make sure to keep this source http://keyman.blog.51cto.com/9807984/1600812

CENTOS/RHEL7 Source Installation Mysql5.5.22

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.