LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   msql and hostname problems (https://www.linuxquestions.org/questions/linux-newbie-8/msql-and-hostname-problems-224765/)

krayz1e 08-31-2004 08:13 AM

msql and hostname problems
 
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

Mikhail_16 08-31-2004 12:21 PM

Re: msql and hostname problems
 
Quote:

Originally posted by krayz1e
this is wat i do... when im trying 2 install mysql in CL
----------------------------------------------------------------------

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

Lol, its pretty simple, all you need is to add your hostname to your /etc/hosts file, like this:

my /etc/hosts file

127.0.0.1 krayzie localhost.localdomain localhost

OR

my /etc/hosts file

[your comp's IP] krayzie
127.0.0.1 localhost.localdomain localhost


Also check that both files (/etc/sysconfig/network and /etc/hosts) are readable. Also check that you can browse the web to (say) www.google.com if you are not able to do that, then the issue lies in /etc/resolv.conf file

krayz1e 08-31-2004 04:28 PM

thanks 4 the reply... but i still get the same responce..

i can browse the net from that box


any1 please.... render assistance

krayz1e 09-01-2004 07:43 PM

any 1??

krayz1e 09-04-2004 01:48 AM

still cant get it working


All times are GMT -5. The time now is 12:28 AM.