added the solution to change datadir for mysql