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 trial

PHP Laravel 4 Basics Laravel and Databases Database Setup

Hai Le Quang
Hai Le Quang
5,855 Points

How 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
Hai Le Quang
5,855 Points

I'm on Mac OS X 10.10

2 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Have 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
Hai Le Quang
5,855 Points

yes, I'm using Mamp but whatever I'm running Mamp or not, I'm still getting command not found error

William Li
William Li
Courses Plus Student 26,868 Points

Well, then the mysql executable is not on your $PATH.

export PATH=$PATH:/Applications/MAMP/Library/bin

should fix it.

Hai Le Quang
Hai Le Quang
5,855 Points

yes, 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
William Li
Courses Plus Student 26,868 Points

One 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
Mat Val
1,041 Points

Hi, I am in the same situation with windows 10.

bash: mysql: command not found

What should I do?

Thank you

for example go to your Homstead/ folder Write... vagrant ssh

and now mysql -u -p