command line get mysql version code example Example: how to get current mysql version SELECT VERSION ();