get version of mysql server code example Example: how to get current mysql version SELECT VERSION ();