You'll then need to set the default values for basdir, datadir and pid file locations.
Here's an excerpt with the top portion of the file and the settings that worked for me...
# If you change base dir, you must also change datadir. These may get
# overwritten by settings in the MySQL configuration files.
# Default value, in seconds, afterwhich the script should timeout waiting
# for server start.
# Value here is overriden by value in my.cnf.
# 0 means don't wait at all
# Negative numbers mean to wait indefinitely
# Lock directory for RedHat / SuSE.
# The following variables are only set for letting mysql.server find things.
# Set some defaults
if test -z "$basedir"
After this you should be able to start and stop MySQL as follows: