LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help in uninstalling mysql (https://www.linuxquestions.org/questions/linux-newbie-8/help-in-uninstalling-mysql-112580/)

forgad 11-05-2003 05:50 AM

Help in uninstalling mysql
 
Hi,
I make a mistake in deleting the mysql share directory in linux Redhat 8.0.
I want to uninstall the mysql by type rpm -e MySQL-server-4.0.15-0 and the following errors appear:

error reading information on service mysql: No such file or directory
error: %preun(MySQL-server-4.0.15-0) scriptlet failed, exit status 1

And I wanted to install Mysql 3.23 and it has the conflict in the /usr/share/mysql directory.

I do a rpm -qa and the MySQL-server-4.0.15-0 is shown. Can someone advise how can I uninstall the Mysql rpm from the system?

Very new to linux and mysql.

Thanks

Gad

Starchild 11-05-2003 06:31 AM

If you have the MySQL-server-4.0.15-0 rpm, you could do:
rpm -Fvh MySQL-server-4.0.15-0.i386.rpm
(Or whatever it's called)
This, according to the man pages, etc, will freshen the install, ie, adding files part of the package the doesn't exist on the system. Due to, for example, accidental deletion of some of the files.

Then try to remove the package as normal.


All times are GMT -5. The time now is 03:30 AM.