jerry_cym 发表于 2004-11-14 19:08:13

mysql无法运行!

我在/ROOT下键入MYSQL命令:
出现如下:can`t connect to local mysql server throught socket '/var/lib/mysql//mysql.sock (2)

涩兔子 发表于 2004-11-14 20:11:23

----- Original Message -----
From: ian douglas <id@stripped> :arrow: ian douglas的问题跟你一样
To: Cecep Rosuludin <cecepr@stripped>
Subject: Re: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock'
Date: Mon, 01 Nov 2004 17:48:27 -0800

>
> > # ls -l /var/lib/mysql
> > total 20564
> > -rw-rw----1 mysql mysql    25088 Nov1 14:10 ib_arch_log_0000000000
> > -rw-rw----1 mysql mysql 10485760 Nov2 07:39 ibdata1
> > -rw-rw----1 mysql mysql5242880 Nov2 07:39 ib_logfile0
> > -rw-rw----1 mysql mysql5242880 Nov1 14:10 ib_logfile1
> > drwx--x--x2 mysql mysql   4096 Feb 232004 mysql/
> > -rw-rw----1 mysql root      7509 Nov2 07:39 server6.cma-cgm.com.err
> > drwxr-xr-x2 mysql mysql   4096 Feb 232004 test/
>
> Therein lies your problem: you can't connect to
> /var/lib/mysql/mysql.sock if it doesn't exist :o)
>:arrow: 这里贴出你的问题:如果它不存在的话,你无法连接到/var/lib/mysql/mysql.sock
> RedHat was notorious for putting mysql.sock in /tmp/ ... perhaps check
> that path to see if the socket file exists there, and do one of the
> following:
> :arrow:redhat一般把mysql.sock放在了/tmp/ ... 下,可能查找那个路径看看socket文件是否存在,然后按照下面来做:
> (a) symlink it to /var/lib/mysql:
>:arrow: (a)把它到/var/lib/mysql:
>        :arrow: ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
>
> -OR-
>
> (b) modify your MySQL configuration (check for /etc/my.cnf):
>:arrow: 更改你的MySQL设置
>         under the "" heading:
>
>        :arrow: socket=/var/lib/mysql/mysql.sock
>
> ... set that path and filename to wherever your mysql.sock file lives.
:arrow: 设置路径和文件名到你的mysql.sock文件所在地
>
> You could try using:
>:arrow: 你可以尝试使用:
>        :arrow: locate mysql.sock
>
> ... to find the file for you as well.
> 到你发现文件的位置 :mrgreen:
> -id
>
>

jerry_cym 发表于 2004-11-14 20:29:15

不要意思,我忘记启动MYSQLD服务器了 :oops:
麻烦你了写这么多,呵呵!

涩兔子 发表于 2004-11-14 20:31:26

你也加入PHPBLUE的编写吧

我在写需求分析呢

你先看看session这部分的DD :mrgreen:

jerry_cym 发表于 2004-11-14 20:56:29

可以,能说说你这项目是具体做什么的?
页: [1]
查看完整版本: mysql无法运行!