红联Linux门户
Linux帮助

Fedora Core 6 如何启动mysqld

发布时间:2006-12-13 11:17:52来源:红联作者:scwangpeng
:0(1

[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
[失败]

到底需些什么动作???
文章评论

共有 5 条评论

  1. 211.205.14.* 于 2007-07-06 00:43:41发表:

    http://a96b736b861d298cdca644f17be7f185-t.lwgmrw.org a96b736b861d298cdca644f17be7f185 http://a96b736b861d298cdca644f17be7f185-b1.lwgmrw.org a96b736b861d298cdca644f17be7f185 http://a96b736b861d298cdca644f17be7f185-b3.lwgmrw.org 7323937625928ec2c2b389a5c949efe8

  2. oio-c 于 2007-01-28 21:25:17发表:

    :0(1 ,没看明白,Mysql我重装和升级都不行,不知道为什么?

  3. kimmy 于 2007-01-26 14:33:13发表:

    主机(o) 是

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

    ?

    要和 # hostname 看到的一样吗?

  4. scwangpeng 于 2006-12-14 09:01:30发表:

    :0L
    设置主机(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: [确定]

    :0)1

  5. 58.223.40.* 于 2006-12-13 13:01:38发表:

    我也遇到此问题,怎么没高手回应