 |
 |
Configuring hostname
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2000
Location: Dublin, Ireland
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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?
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|