There are many ways to do this, I was able to set up mysql using this way.
Use this tutorial to setting up the mysql in mac.
but after you complete those steps and still you can't get the mysql running without using these commands
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
All you have to do is change the add few lines to the .bash_profile
export the mysql and add it to the path as shown below.
export MYSQL=/usr/local/mysql/bin/
export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$CATALINA_HOME/bin:$ANT_HOME/bin:$MYSQL:$PATH
After adding those Don't forget to source the file and check if its correctly configured
Vinuris-MacBook-Pro:~ vinurip$ source .bash_profile
Vinuris-MacBook-Pro:~ vinurip$ echo $MYSQL
/usr/local/mysql/bin/
Vinuris-MacBook-Pro:~ vinurip$
feel free to put comments
Best Regards
~Vinuri~
No comments:
Post a Comment