MYSQL_HOME
Set the MYSQL_HOME environment variable to point to the base directory of your MySQL installation. In the example below, the path points to a symbolic link file rather than the actual MySQL installation directory. You can create a symbolic link ("sym link") in Unix using the ln -s command (e.g., ln -s mysql-5.1.46-osx10.6-x86_64 mysql).
Unix/Mac:
| No Format |
|---|
export MYSQL_HOME=/usr/local/mysql
|
Windows:
| No Format |
|---|
set MYSQL_HOME=C:\mysql
|
PATH
Add MySQL's /bin directory to your PATH variable.
Unix/Mac:
| No Format |
|---|
export PATH=$PATH:$CATALINA_HOME/bin:$JAVA_HOME/bin:$M2_HOME/bin:$MYSQL_HOME/bin:$PHP_HOME/bin:$SUBVERSION_HOME/bin:$USR_LOCAL/bin
|
Windows:
| No Format |
|---|
;C:\mysql\bin
|