mysql启动问题(菜鸟问题)

mysql启动问题(菜鸟问题)

安装完mysql之后,用rpm安装,启动提示如下:
[root@idc517 sbin]# ./mysqld
021201 20:43:47  Can't start server: Bind on TCP/IP port: Address already in use
021201 20:43:47  Do you already have another mysqld server running on port: 3306 ?
021201 20:43:47  Aborting

021201 20:43:47  ./mysqld: Shutdown Complete

那位大虾指点一下小弟,万分感谢!!!      
service mysqld restart
试试      
提示:
[root@idc517 src]# service mysqld restart
mysqld: unrecognized service
可能是数据库没安装上!!!
我在系统安装时默认安装了mysql,但好像没安装上,进程没有,后来我就用rpm安装!
提示如下:
[root@idc517 src]# rpm -i --force MySQL-3.23.44-1.i386.rpm
Giving mysqld a couple of seconds to exit nicely
Installing all prepared tables
021201 21:00:23  /usr/sbin/mysqld: Shutdown Complete

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/bin/mysqladmin -u root -p password 'new-password'
/usr/bin/mysqladmin -u root -h idc517 -p password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Starting mysqld daemon with databases from /var/lib/mysql
021201 21:00:24  mysqld ended

You have new mail in /var/spool/mail/root

请问这是有错吧,但进程是这样:
[root@idc517 src]# ps ax|grep mysql
16666 pts/0    S      0:00 /bin/sh /usr/bin/safe_mysqld --datadir=/var/lib/mysql
16686 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql
16688 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql
16689 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql
17655 pts/0    S      0:00 grep mysql

小弟是菜鸟,请版主提示.
或全部删掉,重新安装也成!!!谢谢!



还有一问题,我在用tar安装时提示如下:
[root@idc517 src]# tar -xzvf mysql-3.23.44-pc-linux-gnu-i686.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
请问这是什么意思,如何解决,谢!谢!谢!谢!谢!谢!      
先删了
rpm -e --nodeps ....(和mysql相关的)
再装
rpm -ivh mysql....rpm(所有和mysql相关的)

再启动

service mysqld start

你那个tar.gz的文件是坏的。      
我用#rpm -q mysql查询mysql的安装,提示:
[root@idc517 /]# rpm -q mysqld
package mysqld is not installed

但进程有:
[root@idc517 /]# ps ax |grep mysql
16666 pts/0    S      0:00 /bin/sh /usr/bin/safe_mysqld --datadir=/var/lib/mysql
16686 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql
16688 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql
16689 pts/0    S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql

我巨晕!!!请版主有时间给小弟一点提示,谢谢谢谢谢谢!!!      
rpm -qa | grep mysql
mysql-3....rpm
mysqlclient9-...rpm
mysql-server-....rpm
会列出所有mysql的包
然后
rpm -e --nodeps .....(以上列出的rpm包,不要带版本号,也就是-以前的名字)
然后再装


是没有mysqld这个包的

建议先看看linux的命令先,比如rpm等