Re: PHP-mysql failure
| From: | nilesh Dharaiya | Date: | Tue, 24 Oct 2000 12:41:21 +0000 |
| Subject: | Re: PHP-mysql failure | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-472@lists.php.net to get a copy of this message | ||
Check for my.cnf file, copy it to /etc, edit it if you
want to change the configuration andthen restart your
mysql, it must work.
Nilesh
--- Paco Ortiz <fjortiz@comunet.es> wrote:
> Hi:
>
> afer setting up PHP4 + Mysql (with RH7 RPMS), I get
> this error with mysql_* functions:
>
> ERROR 2002: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111)
>
> so it seems that mysqld is not running... I go to
> the mysql log generated in
> /var/lib/mysql/nameofserver.domain.err :
>
> 001019 14:50:44 mysqld started
> 001019 14:50:44 /usr/libexec/mysqld: Can't
> create/write to file '/var/run/mysql
> d.pid' (Errcode: 13)
> 001019 14:50:44 /usr/libexec/mysqld: Can't find
> file: './mysql/host.frm' (errno
> : 13)
> 001019 14:50:44 /usr/libexec/mysqld: Error on
> delete of '/var/run/mysqld.pid' (
> Errcode: 2)
> 001019 14:50:44 mysqld ended
>
> Does some caritative soul know what might be
> happening? Thanks in advance !
>
> FJ Ortiz Torre
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/