You didn't say what OS ... so ...
Above on CentOS 7 and MariaDB, but think MySQL might be the same. And I assume that's the same thing one would do in a Ubuntu LSB ... like 18.x.
If Windows ... sorry ... don't do those anymore!
'spirit of sharing', Ken