Select "Project" -> "Options" -> "Compiler options" -> "Linker (tab)".
Now add -lmysqlclient -lcrypt -lnsl to the input line. Close the window with a click on the "OK" button. These settings are required to build applications with mysql support.
root
2015-09-06