# provide warning in cases we should run mysql_upgrade
if[$version -ne $thisversion];then
# give extra warning if some version seems to be skipped
if[$version -gt 0]&&[$version -lt 505];then
echo"The datadir located at $datadir seems to be older than of a version 5.5. Please, mind that as a general rule, to upgrade from one release series to another, go to the next series rather than skipping a series." >&2
fi
cat <<EOF >&2
The datadir located at $datadir needs to be upgraded using 'mysql_upgrade' tool. This can be done using the following steps: