MySQL Forums
Forum List  »  Newbie

Re: Need some clarifications about mysqld_safe
Posted by: Anthony Shi
Date: May 10, 2023 04:17AM

It makes more sense to me if find_basedir_from_cmdline() also looks for basedir in option files as well rather than just the command line? This is what find_basedir_from_cmdline() currently looks like:
find_basedir_from_cmdline () {
  for arg in "$@"; do
    case $arg in
        MY_BASEDIR_VERSION="`echo "$arg" | sed -e 's;^--[^=]*=;;'`"
        # Convert to full path
        cd "$MY_BASEDIR_VERSION"
        if [ $? -ne 0 ] ; then
          log_error "--basedir set to '$MY_BASEDIR_VERSION', however could not access directory"
          exit 1

Options: ReplyQuote

Written By
Re: Need some clarifications about mysqld_safe
May 10, 2023 04:17AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.