At least in macOS, dev environment.
A little of bullshit talk before solution: MySQL uses a Data directory to store the data of different databases you create.
Some services stop automatically if they are not in use by other services or programs.
The above failed to solve the problem for me on Ubuntu 12.
You will need Administrator privileges to do this.
Create the new dir and set correct permissions.