Total beginner in this. Anyone?
1. Learn what an Compiler does.
2. Learn what an linker does.
3. Learn what an library does.
Code::Blocks is none of the above; it is an IDE-like Tool that can be used with more than one Compiler/Linker. Mainly only supports gdb and cdb as debuggers.
The word "connect" has little valid meaning when applied to Code::Blocks.
What I get is that you wish to use X to connect to an MySQL database.
Where X is an undefined something that is not part of Code::Blocks; but, some reason you think the C::B folks should know how to use MySQL better than the MySQL support groups.
Tim S.