Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

安装MYSQL,提示错误。。。请帮忙看看

[复制链接]
itzykj 发表于 2006-12-16 19:44:09 | 显示全部楼层 |阅读模式
shell> groupadd mysql
     shell> useradd -g mysql mysql
     shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
     shell> cd mysql-VERSION
     shell> ./configure --prefix=/usr/local/mysql
     shell> make
     shell> make install
     shell> cp support-files/my-medium.cnf /etc/my.cnf
     shell> cd /usr/local/mysql
     shell> bin/mysql_install_db --user=mysql
     shell> chown -R root  .
     shell> chown -R mysql var
     shell> chgrp -R mysql .
     shell> bin/mysqld_safe --user=mysql &

设置密码的时候提示这个。。

[root@localhost sql-bench]# /usr/local/mysql//bin/mysqladmin -u root password 123456
/usr/local/mysql//bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/usr/local/mysql/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/usr/local/mysql/tmp/mysql.sock' exists!


ps -aux 结果


USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.2  3068  536 ?        S    04:00   0:01 init [3]         
root         2  0.0  0.0     0    0 ?        SN   04:00   0:00 [ksoftirqd/0]
root         3  0.0  0.0     0    0 ?        S<   04:00   0:00 [events/0]
root         4  0.0  0.0     0    0 ?        S<   04:00   0:00 [khelper]
root         5  0.0  0.0     0    0 ?        S<   04:00   0:00 [kacpid]
root        16  0.0  0.0     0    0 ?        S<   04:00   0:00 [kblockd/0]
root        26  0.0  0.0     0    0 ?        S    04:00   0:00 [pdflush]
root        29  0.0  0.0     0    0 ?        S<   04:00   0:00 [aio/0]
root        17  0.0  0.0     0    0 ?        S    04:00   0:00 [khubd]
root        28  0.0  0.0     0    0 ?        S    04:00   0:00 [kswapd0]
root       103  0.0  0.0     0    0 ?        S    04:00   0:00 [kseriod]
root       179  0.0  0.0     0    0 ?        S<   04:00   0:00 [kmirrord]
root       180  0.0  0.0     0    0 ?        S<   04:00   0:00 [kmir_mon]
root       188  0.0  0.0     0    0 ?        S    04:00   0:03 [kjournald]
root       972  0.0  0.1  3412  444 ?        S<s  04:00   0:00 udevd
root      1030  0.0  0.0     0    0 ?        S<   04:00   0:00 [kauditd]
root      1094  0.0  0.0     0    0 ?        S    04:00   0:00 [kjournald]
root      1604  0.0  0.2  3320  588 ?        Ss   04:01   0:00 syslogd -m 0
root      1609  0.0  0.1  1908  468 ?        Ss   04:01   0:00 klogd -x
rpc       1636  0.0  0.2  3572  568 ?        Ss   04:01   0:00 portmap
rpcuser   1655  0.0  0.2  2496  756 ?        Ss   04:01   0:00 rpc.statd
root      1681  0.0  0.3  5120  996 ?        Ss   04:01   0:00 rpc.idmapd
root      1752  0.0  0.2  1600  544 ?        Ss   04:01   0:00 /usr/sbin/acpid
root      1761  0.0  0.8  8432 2072 ?        Ss   04:01   0:00 cupsd
root      1814  0.0  0.6  4856 1708 ?        Ss   04:01   0:00 /usr/sbin/sshd
root      1837  0.0  0.3  3212  832 ?        Ss   04:01   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      1856  0.0  1.2  8000 3100 ?        Ss   04:01   0:01 sendmail: accepting connections
smmsp     1864  0.0  1.0  7772 2576 ?        Ss   04:01   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root      1874  0.0  0.2  1988  536 ?        Ss   04:01   0:00 gpm -m /dev/input/mice -t imps2
root      1884  0.0  3.7 18540 9552 ?        Ss   04:01   0:01 /usr/sbin/httpd
nobody    1893  0.0  0.2  2800  668 ?        Ss   04:01   0:01 /usr/bin/dc_client -daemon -pidfile /var/run/dc_client.pid -listen UN
apache    1894  0.0  3.7 18540 9604 ?        S    04:01   0:00 /usr/sbin/httpd
apache    1895  0.0  3.7 18540 9696 ?        S    04:01   0:00 /usr/sbin/httpd
root      1905  0.0  0.4  5172 1116 ?        Ss   04:01   0:00 crond
apache    1896  0.0  3.7 18540 9692 ?        S    04:01   0:00 /usr/sbin/httpd
apache    1914  0.0  3.7 18540 9684 ?        S    04:01   0:00 /usr/sbin/httpd
apache    1915  0.0  3.8 18672 9764 ?        S    04:01   0:00 /usr/sbin/httpd
apache    1916  0.0  3.7 18540 9572 ?        S    04:01   0:00 /usr/sbin/httpd
apache    1917  0.0  3.7 18540 9568 ?        S    04:01   0:00 /usr/sbin/httpd
nobody    1919  0.0  0.2  3048  624 ?        Ss   04:01   0:03 /usr/bin/dc_server -daemon -pidfile /var/run/dc_server.pid -user nobo
apache    1918  0.0  3.7 18540 9568 ?        S    04:01   0:00 /usr/sbin/httpd
xfs       1939  0.0  0.4  3528 1100 ?        Ss   04:01   0:00 xfs -droppriv -daemon
root      1958  0.0  0.2  2276  740 ?        Ss   04:01   0:00 /usr/sbin/atd
dbus      1967  0.0  0.4  3132 1224 ?        Ss   04:01   0:00 dbus-daemon-1 --system
root      1976  0.0  1.4  6128 3788 ?        Ss   04:01   0:45 hald
root      1989  0.0  0.1  2104  404 tty2     Ss+  04:01   0:00 /sbin/mingetty tty2
root      2030  0.0  0.1  3064  404 tty3     Ss+  04:01   0:00 /sbin/mingetty tty3
root      2084  0.0  0.1  3400  404 tty4     Ss+  04:01   0:00 /sbin/mingetty tty4
root      2085  0.0  0.1  3072  404 tty5     Ss+  04:01   0:00 /sbin/mingetty tty5
root      2086  0.0  0.1  2468  400 tty6     Ss+  04:01   0:00 /sbin/mingetty tty6
root      2341  0.0  1.0  8716 2592 ?        Ss   04:01   0:13 sshd: root@pts/0
root      2343  0.0  0.5  5612 1496 pts/0    Ss   04:01   0:01 -bash
root     20290  0.0  0.4  6004 1092 pts/0    S    09:25   0:00 /bin/sh bin/mysqld_safe --user=mysql
mysql    20314  0.0  5.7 114992 14780 pts/0  Sl   09:25   0:05 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=
root     21419  0.0  0.1  1456  404 tty1     Ss+  11:40   0:00 /sbin/mingetty tty1
root     21574  0.0  0.0     0    0 ?        S    12:24   0:00 [pdflush]
root     27090  0.0  0.2  3244  744 pts/0    R+   20:13   0:00 ps aux


请帮忙看看
 楼主| itzykj 发表于 2006-12-16 19:46:15 | 显示全部楼层
[root@localhost sql-bench]# /usr/local/mysql//bin/mysqld_safe &
[2] 27091
[root@localhost sql-bench]# Starting mysqld daemon with databases from /usr/local/mysql//var
STOPPING server from pid file /usr/local/mysql//var/localhost.localdomain.pid
061216 20:16:18  mysqld ended
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-28 07:25 , Processed in 0.021351 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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