MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am very new to Linux. Just installed my first Mandriva Linux 10.1 OS. Now I want to install MySQL on it. I have used mysql on Windows XP. To use one peice of software that I use with mysql, I have to have to host name or IP address of the machine running MySql. We use DHCP, so everytime the machine boots, it gets a different IP so I can not rely on the IP address. In Windows, I can just click on control panel and then system and then Computer name which is also the hostname. How do I get the Hostname/Computer name in Madrake Linus 10.1???
If you just want the IP address of the machine you're on, use 'ifconfig <interface>' (most likely eth0). That will give you a whole slew of information, including the IP address. If you the need the hostname as well, you can use the command 'hostname' with various options. Type 'man hostname' for more info. Shout if that doesn't work for you.
Note that this is my local network and it is not available on the Internet. However, you need to do this for your local network to make Apache and ftp work.
My other machines are named for atomic particles, but you can use the Table of Elements (common) or the Moons of the Solar System (I think there are 160 odd).
Try not to assign user names for machine names, or your users/passwords will start getting confused with your machine/domain names.
Each machine has to have a name, and then you must also name your network. And since you are a network, then .net is obvious.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.