Connection


  1. A stored procedure is invoked using the statement __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, a stored procedure is invoked using the CALL statement. A stored procedure does not have a return value but can modify its parameters. It also returns some result sets.


  1. Which of the following can be used interchangeably with MYSQL_VERSION_ID?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The ‘LIBMYSQL_VERSION’ and ‘LIBMYSQL_VERSION_ID’ macros have the same values as ‘MYSQL_SERVER_VERSION’ and ‘MYSQL_VERSION_ID’ and the two sets of macros can be used interchangeably.



  1. Which option is supplied to ensure TCP/IP connection to local server?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In order to ensure that the client makes a TCP/IP connection to the local server, the ‘–host’ or ‘-h’ option is used to specify a host name value of 127.0.0.1 or the IP address of the local server.


  1. Connections to remote servers always use TCP/IP.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The connections to remote servers always use TCP/IP. To connect to the server running on remote.example.com using the default port number (3306) this command is used: mysql –host=remote.example.com.



  1. The –protocol value ‘TCP’ runs on which operating systems?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The connection protocol used by the option ‘–protocol = TCP’ indicates TCP/IP connection to the local or the remote server. Each –protocol value has the set of permissible OS.