Install MySQL 6.3 source code in CentOS 5.6

Source: Internet
Author: User

 
: Http://dev.mysql.com/downloads/mysql/5.6.html#downloads
 
Select "Source Code"
 


 
2: necessary software packages
 
Yum-y install gcc-c ++ gcc-g77 autoconf automake zlib * fiex * libxml * ncurses-devel libmcrypt * libtool-ltdl-devel * make cmake
 
3: Compile and install
 
[Root @ server182 ~] # Groupadd mysql
 
[Root @ server182 ~] # Useradd-r-g mysql
 
[Root @ server182 ~] # Tar-zxvf mysql-5.6.10.tar.gz
 
[Root @ server182 ~] # Cd mysql-5.6.10
 
[Root @ server182 mysql-5.6.10] # cmake.
 
[Root @ server182 mysql-5.6.10] # make & make install
 
------------------------- By default, it is installed in/usr/local/mysql
 
[Root @ server182 ~] # Chown-R mysql. mysql/usr/local/mysql
 
[Root @ server182 ~] # Cd/usr/local/mysql/scripts
 
[Root @ server182 ~] #./Mysql_install_db -- user = mysql -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data
 
[Root @ server182 ~] # Cd/usr/local/mysql/support-files
 
[Root @ server182 support-files] # cp mysql. server/etc/rc. d/init. d/mysql
 
[Root @ server182 support-files] # cp my-default.cnf/etc/my. cnf
 
[Root @ server182 ~] # Chkconfig-add mysql
 
[Root @ server182 ~] # Chkconfig mysql on
 
[Root @ server182 ~] # Service mysql start
 
Starting MySQL SUCCESS!
 

[Root @ server182 support-files] # mysql
 
Welcome to the MySQL monitor. Commands end with; or \ g.
 
Your MySQL connection id is 1
 
Server version: 5.6.10 Source distribution
 
 
 
Copyright (c) 2000,201 3, Oracle and/or its affiliates. All rights reserved.
 
 
 
Oracle is a registered trademark of Oracle Corporation and/or its
 
Affiliates. Other names may be trademarks of their respective
 
Owners.
 
 
 
Type 'help; 'or' \ H' for help. type' \ C' to clear the current input statement.
 
 
 
Mysql>
 

Mysql> status;
 
--------------
 
Mysql Ver 14.14 Distrib 5.6.10, for Linux (i686) using EditLine wrapper
 
 
 
Connection id: 1
 
Current database:
 
Current user: root @ localhost
 
SSL: Not in use
 
Current pager: stdout
 
Using outfile :''
 
Using delimiter :;
 
Server version: 5.6.10 Source distribution
 
Protocol version: 10
 
Connection: Localhost via UNIX socket
 
Server characterset: utf8
 
Db characterset: utf8
 
Client characterset: utf8
 
Conn. characterset: utf8
 
UNIX socket:/tmp/mysql. sock
 
Uptime: 5 min 45 sec
 
 
 
Threads: 1 Questions: 5 Slow queries: 0 Opens: 70 Flush tables: 1 Open tables: 63 Queries per second avg: 0.014
 
--------------
 
Mysql>
 
Installation is complete.


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.