abg/dbsake

sandbox.sh w 5.0/5.1 mysqld_safe fails under certain conditions

Closed this issue · 0 comments

abg commented

mysqld_safe prior to some version of 5.5, can fail to find my_print_defaults in a non-standard directory. By default it looks for places pointed to by the MY_BASEDIR_VERSION environment variable, and will look relative to $(pwd) otherwise as well as trying various default paths. So cd ${sandbox_directory} && ./sandbox.sh start works, but ${sandbox_directory}/sandbox.sh start does not.

The fix is easy - set MY_BASEDIR_VERSION=${basedir} for the start action in sandbox.sh.