itgle.com
更多“Which MySQL utility program should you to process and sort the slow Query log based on query time or average query time?() ”相关问题
  • 第1题:

    Hibernate中的查询语句如下fromUseruwhereu.name=:usernameandu.yearold=:yearold正确的参数注入方式有()。

    A.query.setParameter(“username”,”bluedavy”);

    B.query.setParameter(“yearold”,”25”);

    C.query.setParameter(“0”,”bluedavy”);

    D.query.setParameter(“1”,”25”);


    参考答案:A, B

  • 第2题:

    mysql_query()函数是选择数据库的专用函数。

    A.错误

    B.正确


    参考答案:A

  • 第3题:

    如何修改MySQL慢查询的时间阈值

    A.修改全局变量long_query_time的值

    B.修改mysql启动配置文件[mysqld]项里的long_query_time的值

    C.修改全局变量long_query_io

    D.修改全局变量innodb_lock_wait_timeout


    修改全局变量 long_query_time的值;修改mysql启动配置文件[mysqld]项里的long_query_time的值

  • 第4题:

    A general purpose MySQL instance is configured with the following options:—log-slow-queries—long-query-time=,0001—log-slow-admin-queries—general-log—log-bin—binlog-format=STATEMENT—innodb-flush-log-at-trx-commit=1Which three statements are true()。

    A.The General Query Log records more data than the Binary Log

    B.The binary Log records more data than the General Query Log

    C.The Slow Query Log records more data than the General Query Log

    D.The General Query Log records more data than the Slow Query Log

    E.The Slow Query Log records more data than the Binary Log

    F.The Binary Log records more data than the Slow Query Log


    参考答案:A, D, E

  • 第5题:

    PHP中,选定某个数据库的函数名是____。

    A.mysql_connect_db

    B.mysql_select_db

    C.mysql_query_db

    D.mysql_pconnect_db


    mysql_select_db

  • 第6题:

    排查问题需要,想查看所有MySQL Server的SQL语句,可以如何操作?

    A.配置slow_query_log=1并设置log_query_time=0

    B.配置general_log=1

    C.配置log_output=1

    D.配置log_bin=1


    AB