Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot see folders 1

Status
Not open for further replies.

34534534534555

IS-IT--Management
Jan 8, 2003
240
GB
Hi folks.

I have just installed MySQL and PHP on my Mac. They have created a folder in my system called usr. only problem is that it does not appear when you open Mac HD. I can access it from the terminal by typing cd /usr/ Why can i not see it?

TIA

Please let us know what you think of posts, feedback is always appreciated as this will help to further our knowledge as well.
---------------------------------------------------------------------------
All that's required for evil to suceed is for good men to do nothing.
 
Ummmm....

No, they absolutely did not create /usr and, for god's sake, don't delete it. /usr is hidden for a VERY GOOD REASON - it's a fundamental part of the operating system!

If you're going to mess around with UNIX style apps on your Mac, get a copy of "Unix for Mac". (
 
As Troll made Obvious, it is hidden because you (the average user) are not supposed to fiddle with it. However, since you are using PHP and MySQL, we will assume that you are not the average Mac user.

Possibly the easiest way to deal with these files is to use an FTP client and log on to 'localhost' (your own computer). Any file that you copy with the FTP client is COPIED, and not moved - - so all the gooey goodness of the BSD operating system stays intact.

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
Ahhhh! I will just access it from the terminal then -when i need to!

Thanks

Please let us know what you think of posts, feedback is always appreciated as this will help to further our knowledge as well.
---------------------------------------------------------------------------
All that's required for evil to suceed is for good men to do nothing.
 
Cyberwarrior,

You might also want to tell us where you got the MySQL and PHP packages from; packages released by the Fink team tend to use different directories than ones released by others.

In addition, O'Reilly has a series of articles on adding features to OS X, including PHP and MySQL. Check them out here:
 
Hi obvious Troll.

I got the packages from Marc Liyanage's website.
Thanks for the link. I am using that one already -they are good articles. My problem is that not all the commands are explained in full so i am not wholly sure what i am doing in thhe terminal all the time.

Under windows, if you install MySQL to c:\mysql\ you can open up a command prompt and cd to there\bin\ then run mysql.exe which runs the mySQL 'viewer' with a command prompt mysql> How do i translate this to get the same command prompt on the mac??

Many Thanks

Please let us know what you think of posts, feedback is always appreciated as this will help to further our knowledge as well.
---------------------------------------------------------------------------
All that's required for evil to suceed is for good men to do nothing.
 
I don't have mysql installed anymore; so I might get some of the details wrong; but...

First, long term you really do need a book on using UNIX - for example, you need to configure Terminal and your shell so that you can execute mysql from any directory.

For now, however, you should know that many 3rd party UNIX applications install themselves in a directory called /usr/local/. I'm pretty sure that your MySQL install is in /usr/local/mysql/ and the executables are in /usr/local/mysql/bin.

So, to execute mysql you can either type

cd /usr/local/mysql/bin
./mysql

- or -

/usr/local/mysql/bin/mysql

That will run the mysql program, same as in windows.

Finally - you *can* open /usr/local from the Finder - use Go->Go to Folder and type in /usr/local by hand.
 
Obvious Troll, many many thanks. I am really confused as to why i have not been able to do that!! I now have the mysql> prompt i was after. I got it by typing /usr/local/mysql/bin/mysql

Thanks for the finder tip..

Happy Hunting.


| Feedback is always appreciated as this will help to further our knowledge as well |
 
CyberWarrior..I'm in the exact same boat as you. New to Mac, coming from PC. I'm completely lost when finding these files...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top