Connection
- A stored procedure is invoked using the statement __________.
-
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.
- Which of the following can be used interchangeably with MYSQL_VERSION_ID?
-
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.
- Which option is supplied to ensure TCP/IP connection to local server?
-
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.
- Connections to remote servers always use TCP/IP.
-
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.
- The –protocol value ‘TCP’ runs on which operating systems?
-
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.