Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Configuring hostname

Configuring hostname
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2000
Location: Dublin, Ireland
Status: Offline
Reply With Quote
Jan 13, 2003, 10:34 PM
 
On behalf of a fellow member of one of my mailing lists, can anyone help resolve this problem? He's trying to install MySQL. This is what happens in his own words:

I double-clicked on the MySQL package icon and it installed. Then I opened a Terminal window.
I was greeted by:
Last login: Mon, Jan 13 19:18:49 on console
Welcome to Darwin!
[Stephen-Tianos-Computer: ~] stephent%
I typed:
cd /usr/local/mysql
The computer replied:
[Stephen-Tianos-Computer:/usr/local/mysql] stephent%
and I typed:
sudo ./scripts/mysql_install_db
The computer beckoned:
Password:
after which I typed my password, the same one I normally log in with. And this is where it gets hinky.
The computer, sounding snooty, responded:
Sorry, the host 'Stephen-Tianos-Computer.local.' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option
[Stephen-Tianos-Computer:/usr/local/mysql] stephent%

What's happening here? Is his problem serious? Can things be fixed? Anyone?
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Jan 15, 2003, 04:10 PM
 
It seems something is going wrong with rendezvous. (My guess is that mysql gets confused by the trailing dot)

Make sure Rendezvous is enabled in Applications/Utilities/Directory Access

then, if it's the case, try this :

Edit /etc/hostconfig

and replace the line :

HOSTNAME=-AUTOMATIC-

with something like :

HOSTNAME=my_box_hostname

reboot, and see if it works.
     
Fresh-Faced Recruit
Join Date: Dec 2000
Location: Dublin, Ireland
Status: Offline
Reply With Quote
Jan 16, 2003, 02:51 AM
 
Originally posted by pat++:
It seems something is going wrong with rendezvous. (My guess is that mysql gets confused by the trailing dot)

Make sure Rendezvous is enabled in Applications/Utilities/Directory Access

then, if it's the case, try this :

Edit /etc/hostconfig [etc]
Thanks for this. Your advice about editing the hostconfig file is consistent with recommendations I've got on another list. I passed this on to Stephen but he encountered permission problems when trying to save the amended version. Meanwhile we temporarily turned our backs on this to concentrate on the central issue and eventually successfully installed MySQL on his machine.

Rendezvous certainly appears to be involved in some way. I executed 'hostname' on my own system to compare with Stephen's experience and sure enough my hostname is also equivalent to my Rendezvous name as shown in the Sharing panel of System Preferences.
     
Fresh-Faced Recruit
Join Date: Dec 2000
Location: Dublin, Ireland
Status: Offline
Reply With Quote
Jan 16, 2003, 11:57 PM
 
Just to report success. Advice on another list led us to save the amended hostconfig file to Stephen's home directory and then use Terminal to backup the real hostconfig, move the amended one to /etc and change ownership to root:wheel.

After a re-start, the Terminal prompt now shows 'localhost', and executing hostname also returns localhost.
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Richmond, VA
Status: Offline
Reply With Quote
Jan 25, 2003, 10:46 PM
 
Originally posted by Curlywee:
Just to report success. Advice on another list led us to save the amended hostconfig file to Stephen's home directory and then use Terminal to backup the real hostconfig, move the amended one to /etc and change ownership to root:wheel.

After a re-start, the Terminal prompt now shows 'localhost', and executing hostname also returns localhost.
I'm having the exact same problem (as above) right now, using 10.2.3 Server; when I try to configure mysql, I keep getting the hostname config error.

Could you point me to that other list you mentioned? It would be a blessing if I could get this running...
------
Friend of All Cats.
     
Fresh-Faced Recruit
Join Date: Dec 2000
Location: Dublin, Ireland
Status: Offline
Reply With Quote
Jan 25, 2003, 11:33 PM
 
Could you point me to that other list you mentioned? It would be a blessing if I could get this running... [/B]
Certainly. It was the Unix Discussion on Apple's Discussions Board, and the thread is at

http://discussions.info.apple.com/We...p.12@.3bbe01f4

Having said that, are you confident that our OS X resolution will carry over to OS X Server?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2