Install and configure MySQL

Source: Internet
Author: User
Tags crc32
The mysql official website began releasing various versions of the March this year series starting in May. The mysql 5.6 series versions have been comprehensively refined.

The mysql official website began releasing various versions of the March this year series starting in May. The mysql 5.6 series versions have been comprehensively refined.

The mysql official website began releasing various versions of the 5.6 series starting in May,. the mysql series versions have been comprehensively refined, the following is a sharing record of the mysql5.6.10 source code installation process configured in the virtual machine:

[Root @ mysql5 ~] # Groupadd mysql
[Root @ mysql5 ~] # Useradd-r-g 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 4096 Jan 27 2010 bin
Drwxr-xr-x 2 root 4096 Jan 27 2010 etc
Drwxr-xr-x 2 root 4096 Jan 27 2010 games
Drwxr-xr-x 2 root 4096 Jan 27 2010 include
Drwxr-xr-x 2 root 4096 Jan 27 2010 lib
Drwxr-xr-x 2 root 4096 Jan 27 2010 libexec
-Rw-r -- 1 root 35174149 Apr 17 mysql-5.6.10.tar.gz
Drwxr-xr-x 2 root 4096 Jan 27 2010 sbin
Drwxr-xr-x 4 root 4096 Apr 17 share
Drwxr-xr-x 2 root 4096 Jan 27 2010 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 (see documentation for more details ).
01:26:58 18715 [Note] InnoDB: The InnoDB memory heap is disabled
01:26:58 18715 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
01:26:58 18715 [Note] InnoDB: Compressed tables use zlib 1.2.3
01:26:58 18715 [Note] InnoDB: CPU does not support crc32 instructions
01:26:58 18715 [Note] InnoDB: Initializing buffer pool, size = 128.0 M
01:26:58 18715 [Note] InnoDB: Completed initialization of buffer pool
01:26:58 18715 [Note] InnoDB: The first specified data file./ibdata1 did not exist: a new database to be created!
01:26:59 18715 [Note] InnoDB: Setting file./ibdata1 size to 12 MB
01:26:59 18715 [Note] InnoDB: Database physically writes the file full: wait...
01:26:59 18715 [Note] InnoDB: Setting log file./ib_logfile101 size to 48 MB
01:26:59 18715 [Note] InnoDB: Setting log file./ib_logfile1 size to 48 MB
01:26:59 18715 [Note] InnoDB: Renaming log file./ib_logfile101 to./ib_logfile0
01:26:59 18715 [Warning] InnoDB: New log files created, LSN = 45781
01:26:59 18715 [Note] InnoDB: Doublewrite buffer not found: creating new
01:26:59 18715 [Note] InnoDB: Doublewrite buffer created
01:26:59 18715 [Note] InnoDB: 128 rollback segment (s) are active.
01:26:59 18715 [Warning] InnoDB: Creating foreign key constraint system tables.
01:26:59 18715 [Note] InnoDB: Foreign key constraint system tables created
01:26:59 18715 [Note] InnoDB: Creating tablespace and datafile system tables.
01:26:59 18715 [Note] InnoDB: Tablespace and datafile system tables created.
01:26:59 18715 [Note] InnoDB: Waiting for purge to start
01:26:59 18715 [Note] InnoDB: 1.2.10 started; log sequence number 0
01:26:59 18715 [Note] Binlog end
01:26:59 18715 [Note] InnoDB: FTS optimize thread exiting.
01:26:59 18715 [Note] InnoDB: Starting shutdown...
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 (see documentation for more details ).
01:27:00 18738 [Note] InnoDB: The InnoDB memory heap is disabled
01:27:00 18738 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
01:27:00 18738 [Note] InnoDB: Compressed tables use zlib 1.2.3
01:27:00 18738 [Note] InnoDB: CPU does not support crc32 instructions
01:27:00 18738 [Note] InnoDB: Initializing buffer pool, size = 128.0 M
01:27:00 18738 [Note] InnoDB: Completed initialization of buffer pool
01:27:00 18738 [Note] InnoDB: Highest supported file format is Barracuda.
01:27:00 18738 [Note] InnoDB: 128 rollback segment (s) are active.
01:27:00 18738 [Note] InnoDB: Waiting for purge to start
01:27:01 18738 [Note] InnoDB: 1.2.10 started; log sequence number 1625977
01:27:01 18738 [Note] Binlog end
01:27:01 18738 [Note] InnoDB: FTS optimize thread exiting.
01:27:01 18738 [Note] InnoDB: Starting shutdown...
01:27:02 18738 [Note] InnoDB: Shutdown completed; log sequence number 1625987
OK

To start mysqld at boot time 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 do 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 will also give you the option of removing the test
Databases and anonymous user created by default. This is
Stronugly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon:

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

You can test the MySQL daemon with mysql-test-run.pl

Cd mysql-test; perl mysql-test-run.pl

Please report any problems with the./bin/mysqlbug script!

The latest information about MySQL is available on the web

Support MySQL by buying support/licenses

New default config file was created as/usr/local/mysql/my. cnf and
Will be used by default by the server when you start it.
You may edit this file to change server settings

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.