Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to mysql and I'm not a programmer. My computer is a Mac that has been upgraded to Snow Leopard. I have successfully installed apache2 and php, and I have downloaded and installed mySQL.

Problem: I can't configure mySQL to work with php.

When I type:

shell> cd /usr/local/mysql

in terminal I get

-bash: shell: command not found

I suspect it's a problem with the path, but as I'm not a programmer I don't know how to fix it.

I would be grateful for any help on this.

share|improve this question

closed as not a real question by jscott, Zypher Apr 28 '11 at 14:47

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you typing shell> before all your commands? – Scott Keck-Warren Mar 22 '11 at 12:47
No, but I copied this command from a book I was following. – Orchedia Mar 22 '11 at 12:49
The shell> part in the book is used to symbolize your command prompt, as it is likely explained in your books introduction chapter. Don't type it. – Sven Mar 22 '11 at 12:51
Why are you installing all this stuff in the first place? Apache and PHP comes with MacOS and if that doesn't cut it, MAMP ( is a much better solution for testing purposes than trying to install everything yourself. – Sven Mar 22 '11 at 12:53
Now I get: 110322 13:46:12 mysqld_safe Logging to '/usr/local/mysql-5.5.10-osx10.6-x86_64/data/angela-desvauxs-computer.local.err'‌​. grep: grep": No such file or directory grep: 708: No such file or directory grep: ": No such file or directory 110322 13:46:12 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql-5.5.10-osx10.6-x86_64/data Does that look right to you? – Orchedia Mar 22 '11 at 12:54

Try just typing


at the shell prompt.

share|improve this answer
Here are my tries and results so far: shell> cd /usr/local/mysql -bash: shell: command not found mysql -bash: mysql: command not found shell> cd mysql -bash: shell: command not found Did I misunderstand something? – Orchedia Mar 22 '11 at 12:44

Upgrading from 10.5 to 10.6 normally breaks MySQL and requires a reinstall of the latest MySQL.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.