暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

MySQL每日闯关题目解析(九)

原创 szrsu 2023-01-04
537

考虑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 ‘’;

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论