Connection


  1. The log in which data changes received from a replication master server are written is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The Relay Log has the data changes received from a replication master server written in it. The problems encountered during the starting, running or stopping of ‘mysqld’ is written in error log.


  1. Which library file contains various portability macros and definitions?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The ‘my_sys.h’ header file contains a variety of portability macros and definitions required for structures and functions. These structures and functions are used by the client library.



  1. Which header should be included first?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The file ‘my_global.h’ takes care of including several other header files that are likely to be generally useful, like ‘stdio.h’. It also includes Windows compatibility information.


  1. mysql_init() returns a _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    When NULL is passed to mysql_init() it automatically allocates a MYSQL structure, initializes it, and returns a pointer to it. The MYSQL data type is a structure containing information about a connection.



  1. When linking to a static MySQL C client library, the client library and the client application must use the same compiler option.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Generally, when linking to a static MySQL C client library, the client library and the client application must use the same compiler option when it is required to link the C runtime.