2016-01-18 14:42:24 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-01-18 14:42:24 0 [Note] /usr/sbin/mysqld (mysqld 5.6.28) starting as process 1693 ...
2016-01-18 14:42:24 1693 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-01-18 14:42:24 1693 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-18 14:42:24 1693 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-01-18 14:42:24 1693 [Note] InnoDB: Memory barrier is not used
2016-01-18 14:42:24 1693 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-18 14:42:24 1693 [Note] InnoDB: Using Linux native AIO
2016-01-18 14:42:24 1693 [Note] InnoDB: Using CPU crc32 instructions
2016-01-18 14:42:24 1693 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-01-18 14:42:24 1693 [Note] InnoDB: Completed initialization of buffer pool
2016-01-18 14:42:24 1693 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-18 14:42:24 1693 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-18 14:42:24 1693 [Note] InnoDB: Waiting for purge to start
2016-01-18 14:42:24 1693 [Note] InnoDB: 5.6.28 started; log sequence number 1625977
2016-01-18 14:42:24 1693 [Note] Binlog end
2016-01-18 14:42:24 1693 [Note] InnoDB: FTS optimize thread exiting.
2016-01-18 14:42:24 1693 [Note] InnoDB: Starting shutdown...
2016-01-18 14:42:26 1693 [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
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at
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
# rpm -ivh MySQL-devel-5.6.28-1.el6.x86_64.rpm
warning: MySQL-devel-5.6.28-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
[root@tony7 soft]# rpm -ivh MySQL-client-5.6.28-1.el6.x86_64.rpm
warning: MySQL-client-5.6.28-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
创建相关文件夹并授权于mysql用户
#mkdir -p /mysql/data/mysqldata/mydata
#mkdir -p /mysql/data/mysqldata/innodb_log
#mkdir -p /mysql/data/mysqldata/innodb_ts
#mkdir -p /mysql/data/mysqldata/log
#mkdir -p /mysql/data/mysqldata/sock
#mkdir -p /mysql/data/mysqldata/tmpdir
# id mysql
uid=27(mysql) gid=27(mysql) groups=27(mysql)
#chown -R mysql:mysql /mysql/data
把mysql开机自启关闭
#chkconfig --level 2345 mysql off
# chkconfig --list mysql
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
三、配置MySQL数据库参数文件my.cnf
编辑 my.cnf文件
#vi /usr/my.cnf
# For advice on how to change settings please see
#
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 512M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin