对于以下维护表的方式,哪些可以用于InnoDB存储引擎?
CHECK TABLE
ANALYZE TABLE
MySQL数据库要存储Emoji表情、生僻的汉字,需要选择哪种字符集 utf8mb4
之前的数据库是utf8,现在默认是3个字节,但emoji是4个字节,此时需要改为utf8mb4,为4个字节,utf8mb4是在mysql 5.6之后的版本支持的
1, MySQL8.0中支持以下哪些直方图类型? AD
A
单点直方图
B
Hybrid类型直方图
C
TOP Frequency类型直方图
D
等宽直方图
2, 完整性约束:主键和外键约束;
3、因安全要求,需要修改mysql同步用户repl的密码。在主库修改完后,从库最佳修改同步用户密码的方式 D
A
change master to master_host=‘主库IP’,master_user=‘repl’,master_password=‘new password’,master_log_file=‘binlog.020’,master_log_pos=‘136’;#其中master_log_file是show slave status查询的Master_Log_File的值,master_log_pos是Read_Master_Log_Pos的值
B
change master to master_host=‘主库IP’,master_user=‘repl’,master_password=‘new password’,master_log_file=‘binlog.020’,master_log_pos=‘154’;#其中master_log_file是show slave status查询的Relay_Master_Log_File的值,master_log_pos是Exec_Master_Log_Pos的值
C
change master to master_user=‘repl’,master_password=‘new password’;
D
change master to master_password=‘new password’;
4,在MySQL数据库单个普通表上,最多可以创建多少个索引? A
–奇怪, 官网是64 https://dev.mysql.com/doc/refman/8.0/en/innodb-limits.html
A
16个
B
15个
C
32个
D
256