mysql实现表分区不同的磁盘_centos6.5使用yum安装mysql5.6实现不同磁盘的表分区

[root@vm55 ~]# yum install mysql mysql-devel mysql-server mysql-utilities

Loaded plugins: fastestmirror

Loading mirror speedsfromcached hostfile

epel/metalink | 5.7 kB 00:00

* base: mirrors.btte.net*epel: ftp.sjtu.edu.cn*extras: mirrors.btte.net*updates: mirrors.btte.net

epel| 4.4 kB 00:00epel/primary_db | 6.3 MB 00:03mysql-connectors-community | 2.5 kB 00:00mysql-connectors-community/primary_db | 6.8 kB 00:00mysql-tools-community | 2.5 kB 00:00mysql-tools-community/primary_db | 14 kB 00:00mysql56-community | 2.5 kB 00:00mysql56-community/primary_db | 49 kB 00:00Setting up Install Process

Package mysqlis obsoleted by mysql-community-client, trying to install mysql-community-client-5.6.20-4.el6.x86_64 instead

Package mysql-devel is obsoleted by mysql-community-devel, trying to install mysql-community-devel-5.6.20-4.el6.x86_64 instead

Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.20-4.el6.x86_64 instead

Resolving Dependencies--> Running transaction check---> Package mysql-community-client.x86_64 0:5.6.20-4.el6 will be installed--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.20-4.el6 for package: mysql-community-client-5.6.20-4.el6.x86_64---> Package mysql-community-devel.x86_64 0:5.6.20-4.el6 will be installed---> Package mysql-community-server.x86_64 0:5.6.20-4.el6 will be installed--> Processing Dependency: mysql-community-common(x86-64) = 5.6.20-4.el6 for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1()(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64---> Package mysql-utilities.noarch 0:1.4.4-1.el6 will be installed--> Processing Dependency: mysql-connector-python >= 1.2.1 for package: mysql-utilities-1.4.4-1.el6.noarch--> Running transaction check---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed---> Package mysql-community-common.x86_64 0:5.6.20-4.el6 will be installed---> Package mysql-community-libs.x86_64 0:5.6.20-4.el6 will be obsoleting---> Package mysql-connector-python.noarch 0:1.2.3-1.el6 will be installed---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be obsoleted--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed--> Running transaction check---> Package mysql-community-libs-compat.x86_64 0:5.6.20-4.el6 will be obsoleting---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be updated---> Package postfix.x86_64 2:2.6.6-6.el6_5 will be an update--> Finished Dependency Resolution

Dependencies Resolved==================================================================================================================================================================================Package Arch Version Repository Size==================================================================================================================================================================================Installing:

mysql-community-client x86_64 5.6.20-4.el6 mysql56-community 18M

mysql-community-devel x86_64 5.6.20-4.el6 mysql56-community 3.2M

mysql-community-libs x86_64 5.6.20-4.el6 mysql56-community 1.9M

replacing mysql-libs.x86_64 5.1.71-1.el6

mysql-community-libs-compat x86_64 5.6.20-4.el6 mysql56-community 1.6M

replacing mysql-libs.x86_64 5.1.71-1.el6

mysql-community-server x86_64 5.6.20-4.el6 mysql56-community 52M

mysql-utilities noarch 1.4.4-1.el6 mysql-tools-community 952k

Installingfordependencies:

libaio x86_640.3.107-10.el6 base 21k

mysql-community-common x86_64 5.6.20-4.el6 mysql56-community 299k

mysql-connector-python noarch 1.2.3-1.el6 mysql-connectors-community 191k

perl-DBI x86_64 1.609-4.el6 base 705k

Updatingfordependencies:

postfix x86_642:2.6.6-6.el6_5 updates 2.0M

Transaction Summary==================================================================================================================================================================================Install10Package(s)

Upgrade1Package(s)

Total download size:81M

Isthis ok [y/N]: y

Downloading Packages:

(1/11): libaio-0.3.107-10.el6.x86_64.rpm | 21 kB 00:00(2/11): mysql-community-client-5.6.20-4.el6.x86_64.rpm | 18 MB 00:49(3/11): mysql-community-common-5.6.20-4.el6.x86_64.rpm | 299 kB 00:00(4/11): mysql-community-devel-5.6.20-4.el6.x86_64.rpm | 3.2 MB 00:11(5/11): mysql-community-libs-5.6.20-4.el6.x86_64.rpm | 1.9 MB 00:05(6/11): mysql-community-libs-compat-5.6.20-4.el6.x86_64.rpm | 1.6 MB 00:07(7/11): mysql-community-server-5.6.20-4.el6.x86_64.rpm (57%) 41% [========================= ] 328 kB/s | 22 MB 01:35ETA

(7/11): mysql-community-server-5.6.20-4.el6.x86_64.rpm | 52 MB 02:53(8/11): mysql-connector-python-1.2.3-1.el6.noarch.rpm | 191 kB 00:00(9/11): mysql-utilities-1.4.4-1.el6.noarch.rpm | 952 kB 00:03(10/11): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:00(11/11): postfix-2.6.6-6.el6_5.x86_64.rpm | 2.0 MB 00:01

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total324 kB/s | 81 MB 04:14warning: rpmts_HdrFromFdno: V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Retrieving keyfrom file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Importing GPG key0x5072E1F5:

Userid : MySQL Release Engineering<mysql-build@oss.oracle.com>

Package: mysql-community-release-el6-5.noarch (@/mysql-community-release-el6-5.noarch)

From : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Isthis ok [y/N]:

Didn't install any keys

[root@vm55 ~]#

[root@vm55~]#

[root@vm55~]# yum install mysql mysql-devel mysql-server mysql-utilities

Loaded plugins: fastestmirror

Loading mirror speedsfromcached hostfile* base: mirrors.btte.net*epel: ftp.sjtu.edu.cn*extras: mirrors.btte.net*updates: mirrors.btte.net

Setting up Install Process

Package mysqlis obsoleted by mysql-community-client, trying to install mysql-community-client-5.6.20-4.el6.x86_64 instead

Package mysql-devel is obsoleted by mysql-community-devel, trying to install mysql-community-devel-5.6.20-4.el6.x86_64 instead

Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.20-4.el6.x86_64 instead

Resolving Dependencies--> Running transaction check---> Package mysql-community-client.x86_64 0:5.6.20-4.el6 will be installed--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.20-4.el6 for package: mysql-community-client-5.6.20-4.el6.x86_64---> Package mysql-community-devel.x86_64 0:5.6.20-4.el6 will be installed---> Package mysql-community-server.x86_64 0:5.6.20-4.el6 will be installed--> Processing Dependency: mysql-community-common(x86-64) = 5.6.20-4.el6 for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64--> Processing Dependency: libaio.so.1()(64bit) for package: mysql-community-server-5.6.20-4.el6.x86_64---> Package mysql-utilities.noarch 0:1.4.4-1.el6 will be installed--> Processing Dependency: mysql-connector-python >= 1.2.1 for package: mysql-utilities-1.4.4-1.el6.noarch--> Running transaction check---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed---> Package mysql-community-common.x86_64 0:5.6.20-4.el6 will be installed---> Package mysql-community-libs.x86_64 0:5.6.20-4.el6 will be obsoleting---> Package mysql-connector-python.noarch 0:1.2.3-1.el6 will be installed---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be obsoleted--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed--> Running transaction check---> Package mysql-community-libs-compat.x86_64 0:5.6.20-4.el6 will be obsoleting---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be updated---> Package postfix.x86_64 2:2.6.6-6.el6_5 will be an update--> Finished Dependency Resolution

Dependencies Resolved==================================================================================================================================================================================Package Arch Version Repository Size==================================================================================================================================================================================Installing:

mysql-community-client x86_64 5.6.20-4.el6 mysql56-community 18M

mysql-community-devel x86_64 5.6.20-4.el6 mysql56-community 3.2M

mysql-community-libs x86_64 5.6.20-4.el6 mysql56-community 1.9M

replacing mysql-libs.x86_64 5.1.71-1.el6

mysql-community-libs-compat x86_64 5.6.20-4.el6 mysql56-community 1.6M

replacing mysql-libs.x86_64 5.1.71-1.el6

mysql-community-server x86_64 5.6.20-4.el6 mysql56-community 52M

mysql-utilities noarch 1.4.4-1.el6 mysql-tools-community 952k

Installingfordependencies:

libaio x86_640.3.107-10.el6 base 21k

mysql-community-common x86_64 5.6.20-4.el6 mysql56-community 299k

mysql-connector-python noarch 1.2.3-1.el6 mysql-connectors-community 191k

perl-DBI x86_64 1.609-4.el6 base 705k

Updatingfordependencies:

postfix x86_642:2.6.6-6.el6_5 updates 2.0M

Transaction Summary==================================================================================================================================================================================Install10Package(s)

Upgrade1Package(s)

Total size:81M

Isthis ok [y/N]: y

Downloading Packages:

warning: rpmts_HdrFromFdno: V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Retrieving keyfrom file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Importing GPG key0x5072E1F5:

Userid : MySQL Release Engineering<mysql-build@oss.oracle.com>

Package: mysql-community-release-el6-5.noarch (@/mysql-community-release-el6-5.noarch)

From : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Isthis ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : mysql-community-common-5.6.20-4.el6.x86_64 1/13Installing : mysql-community-libs-5.6.20-4.el6.x86_64 2/13Installing : mysql-community-libs-compat-5.6.20-4.el6.x86_64 3/13Installing : mysql-community-client-5.6.20-4.el6.x86_64 4/13Installing : libaio-0.3.107-10.el6.x86_64 5/13Installing : perl-DBI-1.609-4.el6.x86_64 6/13Installing : mysql-connector-python-1.2.3-1.el6.noarch 7/13Installing : mysql-utilities-1.4.4-1.el6.noarch 8/13Installing : mysql-community-server-5.6.20-4.el6.x86_64 9/13Updating :2:postfix-2.6.6-6.el6_5.x86_64 10/13Installing : mysql-community-devel-5.6.20-4.el6.x86_64 11/13Cleanup :2:postfix-2.6.6-2.2.el6_1.x86_64 12/13Erasing : mysql-libs-5.1.71-1.el6.x86_64 13/13Verifying : mysql-community-libs-5.6.20-4.el6.x86_64 1/13Verifying : mysql-community-libs-compat-5.6.20-4.el6.x86_64 2/13Verifying : mysql-utilities-1.4.4-1.el6.noarch 3/13Verifying : mysql-community-client-5.6.20-4.el6.x86_64 4/13Verifying : mysql-community-devel-5.6.20-4.el6.x86_64 5/13Verifying : mysql-connector-python-1.2.3-1.el6.noarch 6/13Verifying :2:postfix-2.6.6-6.el6_5.x86_64 7/13Verifying : mysql-community-common-5.6.20-4.el6.x86_64 8/13Verifying : perl-DBI-1.609-4.el6.x86_64 9/13Verifying : mysql-community-server-5.6.20-4.el6.x86_64 10/13Verifying : libaio-0.3.107-10.el6.x86_64 11/13Verifying :2:postfix-2.6.6-2.2.el6_1.x86_64 12/13Verifying : mysql-libs-5.1.71-1.el6.x86_64 13/13Installed:

mysql-community-client.x86_64 0:5.6.20-4.el6 mysql-community-devel.x86_64 0:5.6.20-4.el6 mysql-community-libs.x86_64 0:5.6.20-4.el6

mysql-community-libs-compat.x86_64 0:5.6.20-4.el6 mysql-community-server.x86_64 0:5.6.20-4.el6 mysql-utilities.noarch 0:1.4.4-1.el6

Dependency Installed:

libaio.x86_640:0.3.107-10.el6 mysql-community-common.x86_64 0:5.6.20-4.el6 mysql-connector-python.noarch 0:1.2.3-1.el6 perl-DBI.x86_64 0:1.609-4.el6

Dependency Updated:

postfix.x86_642:2.6.6-6.el6_5

Replaced:

mysql-libs.x86_64 0:5.1.71-1.el6

Complete![root@vm55~]#

[root@vm55~]#

[root@vm55~]#

[root@vm55~]#

[root@vm55~]# /etc/init.d/mysqld start

初始化 MySQL 数据库:2014-09-11 23:28:15 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation formore details).2014-09-11 23:28:15 1576 [Note] InnoDB: Using atomics to refcount buffer pool pages2014-09-11 23:28:15 1576 [Note] InnoDB: The InnoDB memory heap isdisabled2014-09-11 23:28:15 1576[Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2014-09-11 23:28:15 1576 [Note] InnoDB: Memory barrier isnot used2014-09-11 23:28:15 1576 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-09-11 23:28:15 1576[Note] InnoDB: Using Linux native AIO2014-09-11 23:28:15 1576 [Note] InnoDB: Not usingCPU crc32 instructions2014-09-11 23:28:15 1576 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-09-11 23:28:15 1576[Note] InnoDB: Completed initialization of buffer pool2014-09-11 23:28:15 1576 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2014-09-11 23:28:15 1576 [Note] InnoDB: Setting file ./ibdata1 size to 12MB2014-09-11 23:28:15 1576[Note] InnoDB: Database physically writes the file full: wait...2014-09-11 23:28:15 1576 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48MB2014-09-11 23:28:16 1576 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48MB2014-09-11 23:28:16 1576 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile02014-09-11 23:28:16 1576 [Warning] InnoDB: New log files created, LSN=45781

2014-09-11 23:28:16 1576 [Note] InnoDB: Doublewrite buffer not found: creating new

2014-09-11 23:28:16 1576[Note] InnoDB: Doublewrite buffer created2014-09-11 23:28:16 1576 [Note] InnoDB: 128rollback segment(s) are active.2014-09-11 23:28:16 1576[Warning] InnoDB: Creating foreign key constraint system tables.2014-09-11 23:28:16 1576[Note] InnoDB: Foreign key constraint system tables created2014-09-11 23:28:16 1576[Note] InnoDB: Creating tablespace and datafile system tables.2014-09-11 23:28:16 1576[Note] InnoDB: Tablespace and datafile system tables created.2014-09-11 23:28:16 1576 [Note] InnoDB: Waiting forpurge to start2014-09-11 23:28:16 1576 [Note] InnoDB: 5.6.20 started; log sequence number 0

2014-09-11 23:28:16 1576[Note] Binlog end2014-09-11 23:28:16 1576[Note] InnoDB: FTS optimize thread exiting.2014-09-11 23:28:16 1576[Note] InnoDB: Starting shutdown...2014-09-11 23:28:18 1576 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2014-09-11 23:28:18 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation formore details).2014-09-11 23:28:18 1598 [Note] InnoDB: Using atomics to refcount buffer pool pages2014-09-11 23:28:18 1598 [Note] InnoDB: The InnoDB memory heap isdisabled2014-09-11 23:28:18 1598[Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2014-09-11 23:28:18 1598 [Note] InnoDB: Memory barrier isnot used2014-09-11 23:28:18 1598 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-09-11 23:28:18 1598[Note] InnoDB: Using Linux native AIO2014-09-11 23:28:18 1598 [Note] InnoDB: Not usingCPU crc32 instructions2014-09-11 23:28:18 1598 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-09-11 23:28:18 1598[Note] InnoDB: Completed initialization of buffer pool2014-09-11 23:28:18 1598 [Note] InnoDB: Highest supported file format isBarracuda.2014-09-11 23:28:18 1598 [Note] InnoDB: 128rollback segment(s) are active.2014-09-11 23:28:18 1598 [Note] InnoDB: Waiting forpurge to start2014-09-11 23:28:18 1598 [Note] InnoDB: 5.6.20 started; log sequence number 1625977

2014-09-11 23:28:18 1598[Note] Binlog end2014-09-11 23:28:18 1598[Note] InnoDB: FTS optimize thread exiting.2014-09-11 23:28:18 1598[Note] InnoDB: Starting shutdown...2014-09-11 23:28:20 1598 [Note] InnoDB: Shutdown completed; log sequence number 1625987PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER!Todoso, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h vm55.xiaorui.cc password 'new-password'Alternatively you can run:/usr/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created bydefault. This isstrongly recommendedforproduction servers.

See the manualformore instructions.

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

The latest information about MySQLisavailable on the web at

http://www.mysql.com

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

Note:new defaultconfig file not created.

Please make sure your config fileiscurrent

WARNING: Default config file/etc/my.cnf exists on the system

This file will be read bydefaultby the MySQL server

If youdo not want to use this, either remove it, or use the--defaults-file argument to mysqld_safe when starting the server

[确定]

正在启动 mysqld: [确定]

[root@vm55~]#

[root@vm55~]#

[root@vm55~]#

[root@vm55~]#

[root@vm55~]# mysql -uroot -p

Enter password:

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

Your MySQL connection idis 2Server version:5.6.20MySQL Community Server (GPL)

Copyright (c)2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracleis 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值