Linux mysql5.6 version of the installation configuration process _mysql

Source: Internet
Author: User
Tags crc32 deprecated documentation rollback
Since March this year, the MySQL official website began to release the relevant 5.6 series of versions, for the mysql5.6 series version of the version of the overall detailed enhanced; personal feeling, the following is the process sharing record of the mysql5.6.10 source installation that is configured in the virtual machine:

[Root@mysql5 ~]# Groupadd MySQL
[Root@mysql5 ~]# useradd-r-g MySQL MySQL
[Root@mysql5 ~]# ls
Anaconda-ks.cfg Install.log Install.log.syslog mysql-5.6.10.tar.gz
[Root@mysql5 ~]# cd/usr/local/
[Root@mysql5 local]# ls
Bin etc Games include Lib Libexec sbin share src
[Root@mysql5 local]# cp/root/mysql-5.6.10.tar.gz/usr/local/
[Root@mysql5 local]# LL
Total 34468
Drwxr-xr-x 2 root root 4096 out of the bin
Drwxr-xr-x 2 root root 4096, etc
Drwxr-xr-x 2 root root 4096 to games
Drwxr-xr-x 2 root root 4096
Drwxr-xr-x 2 root root 4096
Drwxr-xr-x 2 root root 4096 to Libexec
-rw-r--r--1 root 35174149 Apr 00:55 mysql-5.6.10.tar.gz
Drwxr-xr-x 2 root root 4096 to Sbin
Drwxr-xr-x 4 root 4096 Apr 00:32 share
Drwxr-xr-x 2 root root 4096 with SRC
[Root@mysql5 local]# TAR-ZXVF mysql-5.6.10.tar.gz
[Root@mysql5 local]# CD mysql-5.6.10
CMake.
Make && make install

[Root@mysql5 mysql-5.6.10]# chown-r Mysql.mysql/usr/local/mysql
[Root@mysql5 mysql-5.6.10]#
[Root@mysql5 mysql-5.6.10]# cd/usr/local/mysql/scripts/
[Root@mysql5 scripts]#./mysql_install_db--user=mysql--basedir=/usr/local/mys
QL--datadir=/usr/local/mysql/data
Installing MySQL system tables ... 2013-04-17 01:26:58 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use--explicit_defaults_for_timestamp server option (the documentation for more details).
2013-04-17 01:26:58 18715 [note] innodb:the InnoDB memory heap is disabled
2013-04-17 01:26:58 18715 [note] innodb:mutexes and rw_locks use InnoDB ' s own implementation
2013-04-17 01:26:58 18715 [note] innodb:compressed tables use zlib 1.2.3
2013-04-17 01:26:58 18715 [note] INNODB:CPU does not support CRC32 instructions
2013-04-17 01:26:58 18715 [note] innodb:initializing buffer pool, size = 128.0M
2013-04-17 01:26:58 18715 [note] innodb:completed initialization of buffer pool
2013-04-17 01:26:58 18715 [note] Innodb:the the specified of the new database to is/IBDATA1 not did the data file. exist:a ed!
2013-04-17 01:26:59 18715 [note] innodb:setting file./ibdata1 size to MB
2013-04-17 01:26:59 18715 [note] Innodb:database physically writes the file full:wait ...
2013-04-17 01:26:59 18715 [note] innodb:setting log file./ib_logfile101 size to MB
2013-04-17 01:26:59 18715 [note] innodb:setting log file./ib_logfile1 size to MB
2013-04-17 01:26:59 18715 [note] innodb:renaming log file./ib_logfile101 to./ib_logfile0
2013-04-17 01:26:59 18715 [Warning] innodb:new log files created, lsn=45781
2013-04-17 01:26:59 18715 [note] innodb:doublewrite buffer not found:creating new
2013-04-17 01:26:59 18715 [note] Innodb:doublewrite buffer created
2013-04-17 01:26:59 18715 [note] innodb:128 rollback segment (s) are active.
2013-04-17 01:26:59 18715 [Warning] innodb:creating FOREIGN KEY constraint system tables.
2013-04-17 01:26:59 18715 [note] innodb:foreign key constraint system tables created
2013-04-17 01:26:59 18715 [note] innodb:creating tablespace and datafile system tables.
2013-04-17 01:26:59 18715 [note] innodb:tablespace and datafile system tables created.
2013-04-17 01:26:59 18715 [note] innodb:waiting for purge to start
2013-04-17 01:26:59 18715 [note] innodb:1.2.10 started; Log sequence number 0
2013-04-17 01:26:59 18715 [note] Binlog end
2013-04-17 01:26:59 18715 [note] innodb:fts optimize thread exiting.
2013-04-17 01:26:59 18715 [note] innodb:starting shutdown ...
2013-04-17 01:27:00 18715 [note] Innodb:shutdown completed; Log sequence Number 1625977
Ok

Filling Help Tables ... 2013-04-17 01:27:00 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use--explicit_defaults_for_timestamp server option (the documentation for more details).
2013-04-17 01:27:00 18738 [note] innodb:the InnoDB memory heap is disabled
2013-04-17 01:27:00 18738 [note] innodb:mutexes and rw_locks use InnoDB ' s own implementation
2013-04-17 01:27:00 18738 [note] innodb:compressed tables use zlib 1.2.3
2013-04-17 01:27:00 18738 [note] INNODB:CPU does not support CRC32 instructions
2013-04-17 01:27:00 18738 [note] innodb:initializing buffer pool, size = 128.0M
2013-04-17 01:27:00 18738 [note] innodb:completed initialization of buffer pool
2013-04-17 01:27:00 18738 [note] innodb:highest supported the file format is barracuda.
2013-04-17 01:27:00 18738 [note] innodb:128 rollback segment (s) are active.
2013-04-17 01:27:00 18738 [note] innodb:waiting for purge to start
2013-04-17 01:27:01 18738 [note] innodb:1.2.10 started; Log sequence Number 1625977
2013-04-17 01:27:01 18738 [note] Binlog end
2013-04-17 01:27:01 18738 [note] innodb:fts optimize thread exiting.
2013-04-17 01:27:01 18738 [note] innodb:starting shutdown ...
2013-04-17 01:27:02 18738 [note] Innodb:shutdown completed; Log sequence Number 1625987
Ok

To start mysqld at boot time and you have to copy
Support-files/mysql.server to the ' right place ' for your system

Please REMEMBER to SET A PASSWORD for the MySQL root USER!
To did so, start the server, then issue the following commands:

/usr/local/mysql/bin/mysqladmin-u root password ' new-password '
/usr/local/mysql/bin/mysqladmin-u root-h mysql5.6 password ' new-password '

Alternatively you can run:

/usr/local/mysql/bin/mysql_secure_installation

Which would also give you the option of removing the test
Databases and anonymous user created by default. This is
Strongly recommended for production servers.

The manual for more instructions.

Can start the MySQL daemon with:

Cd. ; /usr/local/mysql/bin/mysqld_safe &

Can test the MySQL daemon with mysql-test-run.pl

CD mysql-test; Perl mysql-test-run.pl

Please have a problems with the/bin/mysqlbug script!

The latest information about the MySQL is available on the Web at

Http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New Default Config file was created as/usr/local/mysql/my.cnf and
'll be used by default by the server when you start it.
You could edit this file to the Change server settings

Warning:default config FILE/ETC/MY.CNF exists on the system
This file would be read by default by the MySQL server
If you don't want to use this, either remove it, or use the
--defaults-file argument to Mysqld_safe when starting the server

[Root@mysql5 scripts]#
[Root@mysql5 scripts]# cd/usr/local/mysql/support-files/
[ROOT@MYSQL5 support-files]# CP Mysql.server/etc/rc.d/init.d/mysql
[ROOT@MYSQL5 support-files]# CP my-default.cnf/etc/my.cnf
Cp:overwrite '/etc/my.cnf '? Y
[Root@mysql5 support-files]#
[Root@mysql5 support-files]# Chkconfig-add MySQL
-add:unknown option
[Root@mysql5 support-files]# chkconfig--add MySQL
[Root@mysql5 support-files]# chkconfig MySQL on
[root@mysql5 support-files]# service MySQL start
Starting MySQL. [OK]
[Root@mysql5 support-files]#
[Root@mysql5 data]# mysql-u mysql-p-s/tmp/mysql.sock
Enter Password:
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 1
Server version:5.6.10 Source Distribution

Type ' help, ' or ' \h ' for help. Type ' \c ' to clear the buffer.

Mysql>
mysql> status;
--------------
MySQL Ver 14.12 distrib 5.0.77, for Redhat-linux-gnu (i686) using ReadLine 5.1

Connection id:1
Current database:
Current User:mysql@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:latin1
Db characterset:latin1
Client characterset:latin1
Conn. characterset:latin1
UNIX Socket:/tmp/mysql.sock
Uptime:3 min sec

Threads:1 questions:5 Slow queries:0 opens:67 Flush tables:1 Open tables:60 queries per second avg:0.022
--------------

Mysql>

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.