如何删除mysql软件

如何删除mysql软件

[root@localhost mysql]#
[root@localhost mysql]# rpm -Uvh  MySQL-server-5.0.0-0.i386.rpm
warning: MySQL-server-5.0.0-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
        libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
[root@localhost mysql]# rmp -e perl-DBD-MySQL-2.1021-3
bash: rmp: command not found
[root@localhost mysql]# rpm  -e perl-DBD-MySQL-2.1021-3
error: Failed dependencies:
        perl-DBD-MySQL is needed by (installed) mysql-3.23.54a-11
[root@localhost mysql]# rpm -e mysql-3.23.54a-11
error: Failed dependencies:
        libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
[root@localhost mysql]# rpm -Uvh  MySQL-server-5.0.0-0.i386.rpm
warning: MySQL-server-5.0.0-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
        libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3



请问如何删除perl-DBD-MySQL-2.1021-3      
安装mysqlclient后试试      
现在我已经重新装MYSQL,但现在启动又说权限不够
[root@localhost mysql-4.1.0-alpha]# /etc/rc.d/init.d/mysqld start
bash: /etc/rc.d/init.d/mysqld: 权限不够
[root@localhost mysql-4.1.0-alpha]# /etc/rc.d/init.d/mysqld start
bash: /etc/rc.d/init.d/mysqld: 权限不够
[root@localhost mysql-4.1.0-alpha]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql/mysql.sock' (2)
[root@localhost mysql-4.1.0-alpha]#      
MySQL server through socket '/var/lib/mysql/mysql/mysql.sock' (2)

怎么解决?我很是着急....................................      
呵呵,问题不是很明显么?'/var/lib/mysql/mysql目录的属主不是你启动mysql用户的,所以不能创建文件吧。