Fedora Core 6 如何启动mysqld

Fedora Core 6 如何启动mysqld



  [root@localhost bin]# rpm -ql mysql
/etc/ld.so.conf.d/mysql-i386.conf
/etc/my.cnf
/usr/bin/msql2mysql
/usr/bin/mysql
.......

[root@localhost bin]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

[root@localhost init.d]# ./mysqld start
初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/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
                                                           [失败]

  到底需些什么动作???
我也遇到此问题,怎么没高手回应

    设置主机(o)IP为当前IP:
主机(o) : 您可以在此处指定从静态计算机主机名到IP地址的映射。如果DNS被使用,这些设置将会优先于任何它可能会提供的信息。
重新激活网卡.

[root@localhost init.d]# ./mysqld start
初始化 MySQL 数据库: Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug scrīpt!

The latest information about MySQL is available on the web athttp://www.mysql.com
Support MySQL by buying support/licenses athttp://shop.mysql.com
[确定]
启动 MySQL: [确定]

主机(o) 是

/etc/sysconfig/networking/profiles/default/hosts

?

要和 # hostname  看到的一样吗?