考虑MySQL 服务器中的 key buffer。关于这个特性,哪两种说法是正确的? BE
A
它只缓存InnoDB 表的索引块。
B
它只缓存MyISAM 表的索引块。
C
按每个连接设置。
D
它是一个全局缓冲区。
E
它缓存所有存储引擎表的索引块。
因安全要求,需要修改mysql同步用户repl的密码。在主库修改完后,从库最佳修改同步用户密码的方式 D
A
change master to master_user=‘repl’,master_password=‘new password’;
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_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的值
D
change master to master_password=‘new password’;
MySQL中,哪个参数控制单个表的统计信息持久化到磁盘? A
A
STATS_PERSISTENT = 1
B
STATS_PERSISTENT = 0
C
innodb_stats_auto_recalc
D
innodb_stats_persistent = ON
MySQL数据库中,以下哪些方式可以授权用户远程登录? ABCDE
A
create user user1@’%’ identified by “”
B
grant all on . to ‘user1’@’%’ identified by ‘’;
C
create user user1 identified by “”
D
update mysql.user set host = ‘%’ where user = ‘用户名’; flush privileges;
E
grant all on . to ‘user1’ identified by ‘’;