MySQL Connectors and APIs


  1. The MySQL clients are linked with _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    MySQL clients should be linked using the ‘-lmysqlclient’ option in the link command. A ‘-L’ option is also need to be specified to tell the linker where to find the library for it.


  1. On Unix, linking uses dynamic libraries by default.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    On Unix, the linking process uses the dynamic libraries by default. In order to link to the static client library instead, its path name should be added to the link command to do the job.



  1. What can be used as an alternative to mysqlconfig?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘pkg-config’ statement can be used as an alternative to the ‘mysql_config’ statement for obtaining information like compiler flags or to link libraries required to compile some MySQL applications.


  1. Which of these has a smaller memory footprint?
    Perl, PHP











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    A clearly significant difference between Perl and PHP is that Perl has a bigger memory footprint than PHP. Apache processes are larger with ‘mod_perl’ linked in than with ‘mod_php’.



  1. The static C library client in Windows is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The code can be linked with either the dynamic or static C client library. On Windows, the static library is named ‘mysqlclient.lib’ and the dynamic library is named ‘libmysql.dll’.