MySQL 5.7.6 發布,提升性能和安全性
今天 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。
來自:http://www.oschina.net/news/60401/mysql-5-7-6 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!