sample mysql2 bugfix

sample mysql2 bugfix for compile