今天 Oracle 发布了 MySQL 5.7.6 milestone 16,至此,MySQL 5.7 已经开发两年了。相比 MySQL 5.6,有特别多的改进。团队主要关注速度,性能据报告是比之前版本提升了 2 至 3 倍!
新特性列表,主要改进:
-
提升 MySQL 安全性
-
改进了安装程序
MySQL 5.6 中,mysql_install_db 在数据库创建的时候提供选项来生成 random password。
MySQL 5.7.4 中,可以跳过 -skip-random-password 选项来默认生成随机密码。
MySQL 5.7.5 中,还是默认生成随机密码,但是选项修改为 –insecure
而现在,MySQL 5.7.6 废弃了 mysql_install_db,使用 mysqld –initialize (formerly known as “mysqld –bootstrap,” now deprecated.) 替代。
测试运行:
$ ~/opt/mysql/5.7.6/bin/mysqld --no-defaults --basedir=~/opt/mysql/5.7.6/ --datadir=$PWD/data --initialize 2015-03-09T05:06:37.159659Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-03-09T05:06:37.355155Z 0 [Warning] InnoDB: New log files created, LSN=45790 2015-03-09T05:06:37.410118Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2015-03-09T05:06:37.467002Z 0 [Warning] Failed to setup SSL 2015-03-09T05:06:37.467029Z 0 [Warning] SSL error: SSL context is not usable without certificate and private key 2015-03-09T05:06:37.468142Z 1 [Warning] A temporary password is generated for root@localhost: f<jqhdJ(A5p#
跟之前版本相比,最主要是没有生成 .mysql_secret 文件。
但是还有更重要的不同点,那就是这个命令只运行一次!使用 mysql_install_db 时,即使数据目录存在也可以多次运行。
$ ~/opt/mysql/5.7.6/bin/mysqld --no-defaults --basedir=~/opt/mysql/5.7.6/ --datadir=$PWD/data --initialize 2015-03-09T05:49:12.504413Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-03-09T05:49:12.505398Z 0 [ERROR] --initialize specified but the data directory exists. Aborting. 2015-03-09T05:49:12.505422Z 0 [ERROR] Aborting
更多新特性分析请看这里:http://datacharmer.blogspot.jp/2015/03/mysql-5.html。
--------------------------------------分割线 --------------------------------------
MySQL5.7.3.0安装配置图解教程 http://www.linuxidc.com/Linux/2014-10/108397.htm
Ubuntu 14.04下安装MySQL http://www.linuxidc.com/Linux/2014-05/102366.htm
《MySQL权威指南(原书第2版)》清晰中文扫描版 PDF http://www.linuxidc.com/Linux/2014-03/98821.htm
Ubuntu 14.04 LTS 安装 LNMP Nginx\PHP5 (PHP-FPM)\MySQL http://www.linuxidc.com/Linux/2014-05/102351.htm
Ubuntu 14.04下搭建MySQL主从服务器 http://www.linuxidc.com/Linux/2014-05/101599.htm
Ubuntu 12.04 LTS 构建高可用分布式 MySQL 集群 http://www.linuxidc.com/Linux/2013-11/93019.htm
Ubuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb http://www.linuxidc.com/Linux/2013-08/89270.htm
MySQL-5.5.38通用二进制安装 http://www.linuxidc.com/Linux/2014-07/104509.htm
--------------------------------------分割线 --------------------------------------
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-03/114818.htm
