зеркало из https://github.com/github/vitess-gh.git
Merge pull request #5361 from planetscale/morgo-example-mysqld-safe
Examples: search for mysqld instead of mysqld_safe
This commit is contained in:
Коммит
70d21bb51f
|
@ -20,11 +20,11 @@ vtctld_web_port=15000
|
|||
# Set up environment.
|
||||
export VTTOP=${VTTOP-$VTROOT/src/vitess.io/vitess}
|
||||
|
||||
# Try to find mysqld_safe on PATH.
|
||||
# Try to find mysqld on PATH.
|
||||
if [ -z "$VT_MYSQL_ROOT" ]; then
|
||||
mysql_path=`which mysqld_safe`
|
||||
mysql_path=`which mysqld`
|
||||
if [ -z "$mysql_path" ]; then
|
||||
echo "Can't guess location of mysqld_safe. Please set VT_MYSQL_ROOT so it can be found at \$VT_MYSQL_ROOT/bin/mysqld_safe."
|
||||
echo "Can't guess location of mysqld. Please set VT_MYSQL_ROOT manually."
|
||||
exit 1
|
||||
fi
|
||||
export VT_MYSQL_ROOT=$(dirname `dirname $mysql_path`)
|
||||
|
|
Загрузка…
Ссылка в новой задаче