Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 864
KBouldin9 Avatar asked Apr 19 '12 02:04

KBouldin9


1 Answers

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
like image 133
Felix Fung Avatar answered Oct 05 '22 01:10

Felix Fung