KBouldin9
KBouldin9

Reputation: 404

MYSQL terminal Mac command not working 'mysql'

I have a hidden file in my home directory called .profile with the following:

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

The following command works:

$ /usr/local/mysql/bin/mysql

However mysql does not. How can I change the path to make the command work? I have MAMP installed, I'm just not sure how to use it. Thanks!

Upvotes: 5

Views: 28908

Answers (1)

Felix Fung
Felix Fung

Reputation: 1757

I believe the error is in your first line:

   MYSQL_HOME=/usr/local/mysql/bin/mysql 

Which should be like this:

  MYSQL_HOME=/usr/local/mysql

Upvotes: 8

Related Questions