免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1670 | 回复: 4
打印 上一主题 下一主题

[求助]mysqld服务起动不了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-06 15:34 |只看该作者 |倒序浏览
我用的是Enterprise Linux AS4操作系统,系统自带了MySQL,我把它卸掉从新装了一个5.1版的!
按照网上的贴子安装好了,然后把mysql.server考到了/etc/rc.d/init.d目录下,命名成mysqld,并加到了系统起动进程里!
可是我./mysqld start的时候总起动不了!
我觉得是路径设置的问题,但不知道怎么改,我是编译安装的MySQL,能手动启动(/usr/local/mysql/bin/mysqld_safe)
请知情的人帮帮忙!不胜感激!
加我MSN:duckula007@hotmail.com

论坛徽章:
0
2 [报告]
发表于 2006-01-06 15:45 |只看该作者
你可以写个启动的脚本 start_mysql  "/usr/local/mysql/bin/mysqld_safe &"   ,然后放到/etc/rc.d/init.d下。

论坛徽章:
0
3 [报告]
发表于 2006-01-06 15:53 |只看该作者
给他赋予执行的权限chmod +X mysql.server

论坛徽章:
0
4 [报告]
发表于 2006-01-06 16:57 |只看该作者
权限什么的都已经搞定了!
我把脚本第一行加上 -x 后输出如下:

[root@linux init.d]# ./mysqld start

+ basedir=

+ datadir=

+ pid_file=

+ server_pid_file=

+ use_mysqld_safe=1

+ user=mysql

+ test -z ''

+ basedir=/usr/local/mysql

+ bindir=/usr/local/mysql/bin

+ test -z ''

+ datadir=/usr/local/mysql/var

+ sbindir=/usr/local/mysql/sbin

+ libexecdir=/usr/local/mysql/libexec

+ lsb_functions=/lib/lsb/init-functions

+ test -f /lib/lsb/init-functions

+ source /lib/lsb/init-functions

++ alias start_daemon=/etc/redhat-lsb/lsb_start_daemon

++ alias killproc=/etc/redhat-lsb/lsb_killproc

++ alias pidofproc=/etc/redhat-lsb/lsb_pidofproc

++ alias 'log_success_msg=/etc/redhat-lsb/lsb_log_message success'

++ alias 'log_failure_msg=/etc/redhat-lsb/lsb_log_message failure'

++ alias 'log_warning_msg=/etc/redhat-lsb/lsb_log_message warning'

+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/mysql/bin

+ export PATH

+ mode=start

+ case `echo "testing\c"`,`echo -n testing` in

++ echo 'testing\c'

++ echo -n testing

+ echo_n=-n

+ echo_c=

+ test -x ./bin/my_print_defaults

+ test -x /usr/local/mysql/bin/my_print_defaults

+ print_defaults=/usr/local/mysql/bin/my_print_defaults

+ extra_args=

+ test -r /usr/local/mysql/my.cnf

+ test -r /usr/local/mysql/var/my.cnf

++ /usr/local/mysql/bin/my_print_defaults mysqld server mysql_server

mysql.server

+ parse_server_arguments --datadir=/usr/local/mysql/data --

socket=/var/lib/mysql/mysql.sock --old_passwords=1 --user=mysql -- basedir=/usr/local/mysql

+ for arg in '"$@"'

+ case "$arg" in

++ echo --datadir=/usr/local/mysql/data

++ sed -e 's/^[^=]*=//'

+ datadir=/usr/local/mysql/data

+ for arg in '"$@"'

+ case "$arg" in

+ for arg in '"$@"'

+ case "$arg" in

+ for arg in '"$@"'

+ case "$arg" in

++ echo --user=mysql

++ sed -e 's/^[^=]*=//'

+ user=mysql

+ for arg in '"$@"'

+ case "$arg" in

++ echo --basedir=/usr/local/mysql

++ sed -e 's/^[^=]*=//'

+ basedir=/usr/local/mysql

+ bindir=/usr/local/mysql/bin

+ datadir=/usr/local/mysql/data

+ sbindir=/usr/local/mysql/sbin

+ libexecdir=/usr/local/mysql/libexec

++ /usr/local/mysql/bin/my_print_defaults manager

+ parse_manager_arguments

+ test -z ''

++ /bin/hostname

+ pid_file=/usr/local/mysql/data/mysqlmanager-linux.pid

+ test -z ''

++ /bin/hostname

+ server_pid_file=/usr/local/mysql/data/linux.pid

+ cd /usr/local/mysql

+ case "$mode" in

+ manager=/usr/local/mysql/bin/mysqlmanager

+ test -x /usr/local/mysql/libexec/mysqlmanager

+ manager=/usr/local/mysql/libexec/mysqlmanager

+ echo -n 'Starting MySQL'

Starting MySQL+ test -x /usr/local/mysql/libexec/mysqlmanager -a 1 = 0

+ test -x /usr/local/mysql/bin/mysqld_safe

+ pid_file=/usr/local/mysql/data/linux.pid

+ /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --

pid-file=/usr/local/mysql/data/linux.pid

+ wait_for_pid created

+ i=0

+ test 0 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 0 + 1

+ i=1

+ test 1 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 1 + 1

+ i=2

+ test 2 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 2 + 1

+ i=3

+ test 3 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 3 + 1

+ i=4

+ test 4 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 4 + 1

+ i=5

+ test 5 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 5 + 1

+ i=6

+ test 6 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 6 + 1

+ i=7

+ test 7 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 7 + 1

+ i=8

+ test 8 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 8 + 1

+ i=9

+ test 9 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 9 + 1

+ i=10

+ test 10 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 10 + 1

+ i=11

+ test 11 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 11 + 1

+ i=12

+ test 12 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 12 + 1

+ i=13

+ test 13 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 13 + 1

+ i=14

+ test 14 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 14 + 1

+ i=15

+ test 15 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 15 + 1

+ i=16

+ test 16 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 16 + 1

+ i=17

+ test 17 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 17 + 1

+ i=18

+ test 18 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 18 + 1

+ i=19

+ test 19 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 19 + 1

+ i=20

+ test 20 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 20 + 1

+ i=21

+ test 21 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 21 + 1

+ i=22

+ test 22 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 22 + 1

+ i=23

+ test 23 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 23 + 1

+ i=24

+ test 24 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 24 + 1

+ i=25

+ test 25 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 25 + 1

+ i=26

+ test 26 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 26 + 1

+ i=27

+ test 27 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 27 + 1

+ i=28

+ test 28 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 28 + 1

+ i=29

+ test 29 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 29 + 1

+ i=30

+ test 30 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 30 + 1

+ i=31

+ test 31 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 31 + 1

+ i=32

+ test 32 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 32 + 1

+ i=33

+ test 33 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 33 + 1

+ i=34

+ test 34 -lt 35

+ sleep 1

+ case "$1" in

+ test -s /usr/local/mysql/data/linux.pid echo -n .

.++ expr 34 + 1

+ i=35

+ test 35 -lt 35

+ test -z 35

+ /etc/redhat-lsb/lsb_log_message failure

                                                           [失败]

+ test -w /var/lock/subsys

+ touch /var/lock/subsys/mysql

论坛徽章:
0
5 [报告]
发表于 2006-01-06 16:59 |只看该作者
现象就是在./mysqld start以后显示
Start MYSQL .....  在画了35个点以后显示[失败]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP