Categories
macos mysql path

Shortcut to MySql on Mac OS X?

I am trying to add a path so I don’t have to keep typing usr/local/mysql/bin every time I want to start Mysql. I found instructions here that say:

Edit the file /etc/profile and update the path by adding:
usr/local/mysql/bin/, for example:
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin"

Problems:

1. There is no existing line in my profile file that says ‘path’. This is what it currently says in profile:
# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
eval '/usr/libexec/path_helper -s'
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi

2. I really have no idea what I’m doing on a mac (yet). What do I add/change to the above file so mysql is easier to access?