PDA

View Full Version : hostname problem on RH9


krayzie
09-05-2004, 02:19 PM
msql and hostname problems ( post #1)

this is wat i do... when im trying 2 install mysql in CL

[root@krayzie root]# cd mysql-standard-4.0.20-pc-linux-i686-icc


[root@krayzie mysql-standard-4.0.20-pc-linux-i686-icc]# ./configure -prefix=/usr/local/myssql -localstatedir=/usr/local/mysql/data-disable-mainainer-mode-with-my-sql-user=mysql-enable-large-files-without-debug --force
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Neither host 'krayzie' and 'localhost' could not be looked up with
./bin/resolveip
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


[root@krayzie mysql-standard-4.0.20-pc-linux-i686-icc]#


----------------------------------------------------------------------

my /etc/sysconfig/network file

NETWORKING=yes
HOSTNAME=krayzie

---------------------------------------------------------------------

my /etc/hosts file

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost



i have no idea wats going on

ConfusedOfLife
09-07-2004, 11:37 AM
I had the same problem because during Linux installation I chose "Baran" as my computer name and not "localhost"! Anyway, these 2 names were conflicted and it coudln't resolve the host name. What I did was /etc/hosts file and replace all "localhost"s to "Baran". After doing this, it worked! I dunno, but maybe it works for you as well.

bcarl314
09-07-2004, 02:41 PM
Ooo. Bad idea dropping all the "localhost" entries in your /etc/hosts file. Much better to simply add "krayzie" to the end of the 127.0.0.1 entry.

So it would look like this...


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost krayzie


If you drop the localhost and localhost.localdomain lines, you may run into other problems as a lot of applications use "localhost" instead of the value of HOSTNAME.