1、支持對DROP COLUMN刪除字段採用ALGORITHM=INSTANT算法
例:alter table t1 drop column name,ALGORITHM=INSTANT;
MySQL 8.0.17版本不支持該算法
2、支持更改字符集utf8->utf8mb4轉換採用ALGORITHM=INSTANT算法
例:alter table t1 change name name varchar(100) CHARSET utf8mb4,ALGORITHM=INSTANT;
MySQL 8.0.17版本不支持該算法
3、增加身份驗證插件 - Unix Socket
unix_socket認證插件允許用戶通過本地Unix套接字文件連接到MariaDB的時候使用操作系統的憑證。
用法:
1、創建數據庫賬號hechunyang
MariaDB [(none)]> GRANT ALL ON *.* TO 'hechunyang' IDENTIFIED VIA
unix_socket;
Query OK, 0 rows affected (0.001 sec)
2、創建操作系統賬號hechunyang
# useradd hechunyang
# passwd hechunyang
以hechunyang用戶登錄操作系統
3、登錄MariaDB
[root@localhost ~]# su - hechunyang
Last login: Wed Jul 31 14:18:17 CST 2019 on pts/2
[hechunyang@localhost ~]$
[hechunyang@localhost ~]$ mysql -S /tmp/mysql3306.sock -uhechunyang
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 45
Server version: 10.4.6-MariaDB-log MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.001 sec)
在此示例中,用戶hechunyang已登錄操作系統並具有完全shell訪問權限。他已經使用操作系統進行了身份驗證,並且他的MariaDB帳戶已配置爲使用unix_socket身份驗證插件,因此他無需再次對數據庫進行身份驗證。MariaDB接受他的操作系統憑證並允許他連接。
4、mysqladmin shutdown命令增加--wait-for-all-slaves參數,意思爲在關閉mysqld進程之前等待最後一個binlog事件發送到所有連接的Slave從庫.
例:MariaDB [(none)]> SHUTDOWN WAIT FOR ALL SLAVES;
Query OK, 0 rows affected (0.000 sec)