码迷,mamicode.com
首页 > 数据库 > 详细

新手MySQL5.6版本RedHatRPM包安装过程记录

时间:2014-11-27 08:03:27      阅读:381      评论:0      收藏:0      [点我收藏+]

标签:新手 mysql redhat rpm包安装

[root@xiaopang2 桌面]# rpm -e MySQL-shared-compat

[root@xiaopang2 桌面]#  rpm -ivh /root/data/MySQL-client-5.6.21-1.el6.x86_64.rpmPreparing...                ########################################### [100%]

   1:MySQL-client           ########################################### [100%]

[root@xiaopang2 桌面]# rpm -ivh /root/data/MySQL-devel-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

   1:MySQL-devel            ########################################### [100%]

[root@xiaopang2 桌面]# rpm -Uvh /root/data/MySQL-shared-compat-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

   1:MySQL-shared-compat    ########################################### [100%]

[root@xiaopang2 桌面]# rpm -ivh /root/data/MySQL-server-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

   1:MySQL-server           ########################################### [100%]

warning: user mysql does not exist - using root

warning: group mysql does not exist - using root

2014-11-25 10:15:30 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2014-11-25 10:15:30 2573 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-11-25 10:15:30 2573 [Note] InnoDB: The InnoDB memory heap is disabled

2014-11-25 10:15:30 2573 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2014-11-25 10:15:30 2573 [Note] InnoDB: Memory barrier is not used

2014-11-25 10:15:30 2573 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-11-25 10:15:30 2573 [Note] InnoDB: Using Linux native AIO

2014-11-25 10:15:30 2573 [Note] InnoDB: Using CPU crc32 instructions

2014-11-25 10:15:30 2573 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-11-25 10:15:30 2573 [Note] InnoDB: Completed initialization of buffer pool

2014-11-25 10:15:31 2573 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Database physically writes the file full: wait...

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2014-11-25 10:15:31 2573 [Warning] InnoDB: New log files created, LSN=45781

2014-11-25 10:15:31 2573 [Note] InnoDB: Doublewrite buffer not found: creating new

2014-11-25 10:15:31 2573 [Note] InnoDB: Doublewrite buffer created

2014-11-25 10:15:31 2573 [Note] InnoDB: 128 rollback segment(s) are active.

2014-11-25 10:15:31 2573 [Warning] InnoDB: Creating foreign key constraint system tables.

2014-11-25 10:15:31 2573 [Note] InnoDB: Foreign key constraint system tables created

2014-11-25 10:15:31 2573 [Note] InnoDB: Creating tablespace and datafile system tables.

2014-11-25 10:15:31 2573 [Note] InnoDB: Tablespace and datafile system tables created.

2014-11-25 10:15:31 2573 [Note] InnoDB: Waiting for purge to start

2014-11-25 10:15:31 2573 [Note] InnoDB: 5.6.21 started; log sequence number 0

A random root password has been set. You will find it in ‘/root/.mysql_secret‘.

2014-11-25 10:15:33 2573 [Note] Binlog end

2014-11-25 10:15:33 2573 [Note] InnoDB: FTS optimize thread exiting.

2014-11-25 10:15:33 2573 [Note] InnoDB: Starting shutdown...

2014-11-25 10:15:35 2573 [Note] InnoDB: Shutdown completed; log sequence number 1625977



2014-11-25 10:15:35 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2014-11-25 10:15:35 2596 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-11-25 10:15:35 2596 [Note] InnoDB: The InnoDB memory heap is disabled

2014-11-25 10:15:35 2596 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2014-11-25 10:15:35 2596 [Note] InnoDB: Memory barrier is not used

2014-11-25 10:15:35 2596 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-11-25 10:15:35 2596 [Note] InnoDB: Using Linux native AIO

2014-11-25 10:15:35 2596 [Note] InnoDB: Using CPU crc32 instructions

2014-11-25 10:15:35 2596 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-11-25 10:15:35 2596 [Note] InnoDB: Completed initialization of buffer pool

2014-11-25 10:15:35 2596 [Note] InnoDB: Highest supported file format is Barracuda.

2014-11-25 10:15:35 2596 [Note] InnoDB: 128 rollback segment(s) are active.

2014-11-25 10:15:35 2596 [Note] InnoDB: Waiting for purge to start

2014-11-25 10:15:35 2596 [Note] InnoDB: 5.6.21 started; log sequence number 1625977

2014-11-25 10:15:35 2596 [Note] Binlog end

2014-11-25 10:15:35 2596 [Note] InnoDB: FTS optimize thread exiting.

2014-11-25 10:15:35 2596 [Note] InnoDB: Starting shutdown...

2014-11-25 10:15:37 2596 [Note] InnoDB: Shutdown completed; log sequence number 1625987





A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !

You will find that password in ‘/root/.mysql_secret‘.


You must change that password on your first connect,

no other statement but ‘SET PASSWORD‘ will be accepted.

See the manual for the semantics of the ‘password expired‘ flag.


Also, the account for the anonymous user has been removed.


In addition, you can run:


  /usr/bin/mysql_secure_installation


which will also give you the option of removing the test database.

This is strongly recommended for production servers.


See the manual for more instructions.


Please report any problems at http://bugs.mysql.com/


The latest information about 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/my.cnf and

will be used by default by the server when you start it.

You may edit this file to change server settings


[root@xiaopang2 桌面]# service mysql start

Starting MySQL..                                           [确定]

[root@xiaopang2 桌面]# cat /root/.mysql_secret

# The random password set for the root user at Tue Nov 25 10:15:32 2014 (local time): SSSJqYQwlmgkJ1r9


[root@xiaopang2 桌面]# mysql -uroot -p

Enter password: 

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.6.21


Copyright (c) 2000, 2014, 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> set password=password(‘password2014‘);                                          Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.01 sec)


    -> show databases;

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Query OK, 0 rows affected (0.00 sec)

show databases‘ at line 1

mysql> select 1;

+---+

| 1 |

+---+

| 1 |

+---+

1 row in set (0.00 sec)


mysql> Ctrl-C -- exit!


新手MySQL5.6版本RedHatRPM包安装过程记录

标签:新手 mysql redhat rpm包安装

原文地址:http://lovecto1993.blog.51cto.com/8785436/1583027

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!