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