Opa! Os diret�rios est�o certos (usu�rio mysql, grupo daemon) ,e mesmo
assim d� esse erro. Segue um log do dir

drwxr-xr-x   31 root     root          800 2003-09-24 15:31 .
drwxr-xr-x   15 root     root          384 2003-09-19 11:39 ..
drwxr-xr-x    5 root     root          464 2003-09-23 15:41 YaST2
drwxr-xr-x    2 wwwrun   root           48 2003-03-17 12:53 apache2
drwxr-xr-x    3 root     root           72 2003-09-18 10:49 autoinstall
drwxr-xr-x    2 root     root           88 2003-09-24 14:28 dosemu
drwxr-xr-x    2 root     root           48 2003-03-18 14:49 empty
drwxr-xr-x    3 root     root           80 2003-09-25 14:07 hardware
drwxr-xr-x    3 root     root           72 2003-09-18 10:40 htdig
drwxr-xr-x    3 wwwrun   root          112 2003-09-25 14:01 httpd
drwxr-xr-x    2 root     root           80 2003-09-19 16:45 linpopup
-rw-r--r--    1 root     root         1119 2003-09-24 15:30
logrotate.status
drwxr-xr-x    2 root     root           80 2003-09-18 11:15 misc
drwxr-xr-x    4 root     root          840 2003-09-25 14:28 mysql
drwxr-xr-x    2 news     news           48 2003-09-24 15:31 news
drwxr-xr-x    2 root     root          120 2003-09-18 10:46 nfs
drwxr-xr-x    2 nobody   root           48 2003-03-18 14:49 nobody
drwxr-xr-x    3 ntp      nogroup        72 2003-09-18 10:48 ntp
drwx------    2 root     root           72 2003-09-25 14:01 pam_devperm
drwxr-xr-x    2 root     root          528 2003-09-23 15:01 rcd
drwxr-xr-x    2 root     root          320 2003-03-13 19:16 rpm
drwxr-xr-x    6 root     root          496 2003-09-25 14:35 samba
drwxr-xr-x    6 root     root          160 2003-09-23 15:41 scpm
drwxr-xr-x    2 root     root           80 2003-09-18 10:54 sgml
drwx------    2 root     root           48 2003-03-16 09:06 smpppd
drwxr-xr-x    2 root     root           48 2003-03-18 14:37 sshd
drwxr-xr-x    2 root     root           72 2003-09-24 15:31 susehelp
drwxr-xr-x    2 root     root           48 2003-03-15 16:03 ucd-snmp
drwxr-xr-x    2 root     root           48 2003-03-17 11:36 webalizer
drwxr-xr-x    2 wwwrun   root           48 2003-03-18 14:49 wwwrun
drwxr-xr-x    3 root     root           72 2003-09-18 10:47 xdm
drwxr-xr-x    2 root     root           72 2003-09-25 14:01 xkb




E outro, dentro da pasta do mysql:


drwxr-xr-x    4 root     root          840 2003-09-25 14:28 .
drwxr-xr-x   31 root     root          800 2003-09-24 15:31 ..
drw-rw-rw-    2 root     root          528 2003-09-19 12:03 mysql
-rw-rw-rw-    1 root     root         1945 2003-09-25 14:28 mysqld.log
-rw-rw-rw-    1 root     root         1225 2003-09-24 15:23
mysqld.log-20030924.gz
drw-rw-rw-    2 root     root           48 2003-09-19 12:03 test
-rw-rw-rw-    1 root     root         4863 2003-09-19 12:03 ti-bin.001
-rw-rw-rw-    1 root     root            0 2003-09-23 16:02 ti-bin.002
-rw-rw-rw-    1 root     root            0 2003-09-23 16:08 ti-bin.003
-rw-rw-rw-    1 root     root           73 2003-09-23 16:08 ti-bin.004
-rw-rw-rw-    1 root     root            0 2003-09-23 16:08 ti-bin.005
-rw-rw-rw-    1 root     root            0 2003-09-23 16:09 ti-bin.006
-rw-rw-rw-    1 root     root            0 2003-09-23 16:10 ti-bin.007
-rw-rw-rw-    1 root     root            0 2003-09-24 13:02 ti-bin.008
-rw-rw-rw-    1 root     root            0 2003-09-24 13:55 ti-bin.009
-rw-rw-rw-    1 root     root            0 2003-09-24 13:57 ti-bin.010
-rw-rw-rw-    1 root     root            0 2003-09-24 14:00 ti-bin.011
-rw-rw-rw-    1 root     root            0 2003-09-24 14:00 ti-bin.012
-rw-rw-rw-    1 root     root            0 2003-09-24 14:02 ti-bin.013
-rw-rw-rw-    1 root     root            0 2003-09-24 14:03 ti-bin.014
-rw-rw-rw-    1 root     root            0 2003-09-24 14:05 ti-bin.015
-rw-rw-rw-    1 root     root           73 2003-09-24 15:23 ti-bin.016
-rw-rw-rw-    1 root     root            0 2003-09-24 15:23 ti-bin.017
-rw-rw-rw-    1 root     root            0 2003-09-24 15:46 ti-bin.018
-rw-rw-rw-    1 root     root            0 2003-09-24 15:47 ti-bin.019
-rw-rw-rw-    1 root     root            0 2003-09-24 15:50 ti-bin.020
-rw-rw-rw-    1 root     root           39 2003-09-24 15:23 ti-bin.index


E, por �ltimo, o mysqld.log

030924 15:46:49  mysqld started
/usr/sbin/mysqld: File './ti-bin.index' not found (Errcode: 13)
030924 15:46:49  Could not use ti-bin for logging (error 13)
030924 15:46:49  /usr/sbin/mysqld: Can't find file: './mysql/host.frm'
(errno: 13)
030924 15:46:49  /usr/sbin/mysqld: Normal shutdown

mysqld got signal 11;
This could be because you hit a bug. It is also possible that this
binary
or one of the libraries it was linked against is corrupt, improperly
built,
or misconfigured. This error can also be caused by malfunctioning
hardware.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail

key_buffer_size=16773120
record_buffer=131072
sort_buffer=524280
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to 
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 80379
K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation

030924 15:46:49  mysqld ended

030924 15:47:11  mysqld started
/usr/sbin/mysqld: File './ti-bin.index' not found (Errcode: 13)
030924 15:47:11  Could not use ti-bin for logging (error 13)
030924 15:47:11  /usr/sbin/mysqld: Can't find file: './mysql/host.frm'
(errno: 13)
030924 15:47:11  mysqld ended

030924 15:50:02  mysqld started
/usr/sbin/mysqld: File './ti-bin.index' not found (Errcode: 13)
030924 15:50:02  Could not use ti-bin for logging (error 13)
030924 15:50:02  /usr/sbin/mysqld: Can't find file: './mysql/host.frm'
(errno: 13)
030924 15:50:02  mysqld ended

030925 14:28:52  mysqld started
030925 14:28:52  Can't start server : Bind on unix socket: Permission
denied
030925 14:28:52  Do you already have another mysqld server running on
socket: /var/lib/mysql/mysql.sock ?
030925 14:28:52  Aborting

030925 14:28:52  /usr/sbin/mysqld: Shutdown Complete

030925 14:28:52  mysqld ended




Isso ajuda alguma coisa para resolver o problema?



Grato,


Paulo H.




Em Qua, 2003-09-24 �s 23:56, Thiago Macieira escreveu:
> Paulo Henrique Alkmin da Costa wrote:
> >Starting mysqld daemon with databases from /var/lib/mysql
> >/usr/bin/safe_mysqld: line 236: /var/lib/mysql/ti.err: Permiss�o negada
> >rm: cannot remove `/var/lib/mysql/mysql.sock': Permiss�o negada
> >/usr/bin/safe_mysqld: line 242: /var/lib/mysql/ti.err: Permiss�o negada
> >tee: /var/lib/mysql/ti.err: Permiss�o negada
> >030924 16:34:31  mysqld ended
> >tee: /var/lib/mysql/ti.err: Permiss�o negada
> >
> >
> >O que pode estar errado?
> 
> As permiss�es no diret�rio /var/lib/mysql devem estar erradas. Veja com qual 
> usu�rio o MySQL roda e modifique o dono do diret�rio e seu conte�do.

---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a