how to get mysql version in terminal code example Example: how to get current mysql version SELECT VERSION ();