LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 669|回复: 4

有人知道SLACKWARE中MYSQL的安装问题吗?

[复制链接]
发表于 2003-5-28 13:09:37 | 显示全部楼层 |阅读模式
我是用SLACKWARE安装的MYSQL,执
root@oigc-cw://usr/bin# /etc/rc.d/mysql start
                           
root@oigc-cw://usr/bin# Starting mysqld daemon with databases from /var/lib/mysql
030528 05:08:08  mysqld ended
是什么原因呢?
PS -X
root@oigc-cw://usr/bin# ps -x
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:05 init
    2 ?        SW     0:00 [kflushd]
    3 ?        SW     0:00 [kupdate]
    4 ?        SW     0:08 [kswapd]
    5 ?        SW     0:00 [keventd]
   68 ?        S     50:45 /usr/sbin/syslogd
   71 ?        SW     0:05 [klogd]
   73 ?        S      2:02 /usr/sbin/inetd
   76 ?        S      0:31 /usr/sbin/sshd
   80 ?        S      0:00 /usr/sbin/crond -l10
   89 ?        S      0:05 sendmail: accepting connections
   94 ?        S      0:15 /usr/sbin/httpd
   96 ?        SW     0:00 [gpm]
   98 tty1     S      0:00 /sbin/agetty 38400 tty1 linux
   99 tty2     SW     0:00 [agetty]
  100 tty3     SW     0:00 [agetty]
  101 tty4     SW     0:00 [agetty]
  102 tty5     SW     0:00 [agetty]
  103 tty6     SW     0:00 [agetty]
19880 ?        S      0:01 in.telnetd: 192.1.1.64                                            
19891 pts/0    S      0:00 bash
20221 pts/0    R      0:00 ps -x
root@oigc-cw://usr/bin#

请大家都帮忙分析一下为什么MYSQL无法启动呀?
发表于 2003-5-28 16:38:06 | 显示全部楼层
/var/lib/mysql
应该是权限的问题。
 楼主| 发表于 2003-5-29 22:13:39 | 显示全部楼层

请看贴图

lrwxrwxrwx    1 root     root           13 May 23 02:16 libz.so.1 -> libz.so.1.1.3
-rwxr-xr-x    1 root     root        62776 Jul 14  1999 libz.so.1.1.3
lrwxrwxrwx    1 root     root           20 May 23 02:13 makewhatis -> /usr/sbin/makewhatis
-rw-r--r--    1 root     root         3399 May 13  2000 man.conf
-rw-r--r--    1 root     root         1130 Mar 12  1995 more.help
drwxr-xr-x    2 root     root         1024 May 23 02:14 mysql
drwxr-xr-x   31 root     root         2048 Apr 12  2001 perl5
drwxr-xr-x   23 root     root         1024 May 20  2001 php
lrwxrwxrwx    1 root     root           18 May 23 02:17 sendmail -> /usr/sbin/sendmail
drwxr-xr-x    3 root     root         1024 May 23 02:13 setup
lrwxrwxrwx    1 root     root           19 May 23 02:13 terminfo -> /usr/share/terminfo
 楼主| 发表于 2003-5-29 22:16:43 | 显示全部楼层

我改了MYSQL目录的权限可是看下面:

drwxr-xr-x    2 mysql    root         1024 May 23 02:14 mysql
drwxr-xr-x   31 root     root         2048 Apr 12  2001 perl5
drwxr-xr-x   23 root     root         1024 May 20  2001 php
lrwxrwxrwx    1 root     root           18 May 23 02:17 sendmail -> /usr/sbin/sendmail
drwxr-xr-x    3 root     root         1024 May 23 02:13 setup
lrwxrwxrwx    1 root     root           19 May 23 02:13 terminfo -> /usr/share/terminfo
root@oigc-cw:/usr/lib# /etc/rc.d/mysql start
root@oigc-cw:/usr/lib# Starting mysqld daemon with databases from /var/lib/mysql
030529 14:17:41  mysqld ended
 楼主| 发表于 2003-6-1 22:03:34 | 显示全部楼层

thank you

问题得以解决果然是权限的问题,不光是目录的权限,还有库文件的权限啦,总之谢谢/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表