Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

2  
Are you typing shell> before all your commands? –  Scott 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
1  
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. –  SvW 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 (mamp.info/en/index.html) is a much better solution for testing purposes than trying to install everything yourself. –  SvW 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
show 3 more comments

2 Answers 2

Try just typing

mysql

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
add comment

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

share|improve this answer
add comment

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