Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHai Le Quang
5,855 PointsHow do i process all of the above procedure if I'm not using Homestead and vagrant?
Because I'm not using Vagrant and Homestead in my setup, How do I connect to mysql. While I'm on terminal, typing mysql returned command not found.
Hai Le Quang
5,855 PointsI'm on Mac OS X 10.10
2 Answers
William Li
Courses Plus Student 26,868 PointsHave you checked out MAMP? It's the easiest way to get the latest LAMP stack setup on OS X. This is the alternative you should be using if you don't like to use vagrant.
Hai Le Quang
5,855 Pointsyes, I'm using Mamp but whatever I'm running Mamp or not, I'm still getting command not found error
William Li
Courses Plus Student 26,868 PointsWell, then the mysql
executable is not on your $PATH
.
export PATH=$PATH:/Applications/MAMP/Library/bin
should fix it.
Hai Le Quang
5,855 Pointsyes, It worked with Mamp turned on. Homestead seems to be a headache for me because it keeps pumping up errors while I'm installing, I just need to build my website. many thanks, again
William Li
Courses Plus Student 26,868 PointsOne more thing, you'll need to enter this command again if you close/re-open Terminal. If you want $PATH
variable to always include the mysql
bin directory, you need to add the command to your ~/.bash_profile file.
Mat Val
1,041 PointsHi, I am in the same situation with windows 10.
bash: mysql: command not found
What should I do?
Thank you
Kristjan Reinsberg
50,960 Pointsfor example go to your Homstead/ folder Write... vagrant ssh
and now mysql -u -p
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsLinux or Mac user?