Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3497072
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:19:34+00:00 2026-05-18T12:19:34+00:00

I am trying to add a path so I don’t have to keep typing

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:19:35+00:00Added an answer on May 18, 2026 at 12:19 pm

    It depends on whether or not you want all user accounts to have access to MySQL, or just you.

    For everyone, edit /etc/profile as instructed and add the following to the end:
    export PATH=$PATH:usr/local/mysql/bin

    For just you (ALSO, this is safest so you don’t accidentally mess up any system variables!):

    Get a terminal session: Launch Terminal if it’s not already running.

    Make sure you’re in your home directory:
    CD ~

    See if .bash_profile exists:
    ls -al .b*

    If it does, open it with your favorite text editor. If it doesn’t, launch your favorite text editor and Save as… .bash_profile in your home folder.

    Add this line to .bash_profile and Save:
    export PATH=$PATH:/usr/local/mysql/bin

    Then close Terminal and open again for the change to take effect.

    Hope this works out for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to add a 'box' to a form at design time, I looked up
Hi I am trying to develop plugin project, I don't understand why i have
I am trying to add the strsplit function to my MATLAB path, but I
I'm trying to install virtual-python on linux server which I don't have root access.
I have below updateFile code, here I am trying to add new node when
I'm trying to run this method, it works fine but every time after some
I'm using zsh terminal, and I'm trying to add a new entry ( /home/david/pear/bin
I have been trying to add a .cu file into my own(dll) win32 project
I'm trying add data triggers to the default combobox style so each text item
I am trying add picture boxes dynamically. My code is as PictureBox picture =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.