Skip to content

mysql / mysqladmin command not found

November 27, 2010
I use a mac, and today I tried giving a mysqladmin command and got a ‘command not found’ error. It was because mysqladmin was not in the $PATH.
1. Give the whole path

shell>/usr/local/mysql/bin/mysqladmin -u root create new_test

2. Add the path temporarily to your $PATH.
To add mysqladmin to you path:

shell> export PATH=$PATH:/usr/local/mysql/bin
3. To add it each time you load a new terminal (mostly what you want), add the following line to ~./bash_profile

export PATH=$PATH:/usr/local/mysql/bin

and it will load (add to the path) each time you open a new terminal.


From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: