Monday, April 18, 2011

"MySQL: command not found" on Mac

I'm new to Mac, so I have lot's of basic questions on it. Recently I've installed MySQL on my Mac but when I wanted to run mysql command on terminal, I got the error "command not found". I found out that this command is not added to the path automatically and to create the terminal shortcut, you have to add it using this command:

echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile

Of course you have to make sure to adjust the address based on your installation and put your profile name in the command. Done! Now, you can access mysql command from everywhere on terminal.

Hello World!

Hi,
this is my first post here. I have another personal blog in which I'm anonymous :p but here, I'll talk about little things that happen to me during my work and research just to have a place to keep them and not to search from scratch every time I encounter these problems. The problems might seem very obvious for some and a real issue for others. I don't claim that I'm an expert in every fields. Hope these posts are helpful for people who are searching for their problems :D  I'll write more about myself in future.