PDA

View Full Version : [ubuntu] CANT Uninstall MYSQL SERVER



ncnbnt
June 10th, 2009, 04:09 PM
HEEEELLLPPP....:(:(:(

Im trying to damn uninstall mysql-server cause its misconfigured and with :


apt-get remove mysql-serverit prints :


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server psa-api-rpc
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1987kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 30188 files and directories currently installed.)
Removing psa-api-rpc ...
Trying to start service mysql... done
Trying to establish test connection...Failed

ERROR while trying to establish test connection
Check the error reason(see log file: /tmp/api-rpc_9.2.1_ubuntu8.04.build92090422.13_installing.0 90610.15.03.log), fix and try again

Aborting...

dpkg: error processing psa-api-rpc (--remove):
subprocess post-removal script returned error exit status 1
Removing mysql-server ...
Errors were encountered while processing:
psa-api-rpc
E: Sub-process /usr/bin/dpkg returned an error code (1)I checked the /tmp/api-rpc_9.2.1_ubuntu8.04.build92090422.13_installing.0 90610.15.03.log and:


START api-rpc-9.2.1-ubuntu8.04.build92090422.13 installing (deb action: remove) AT Wed Jun 10 15:03:25 GMT 2009
dpkg action:
Trying to start service mysql... /usr/sbin/mysqld (pid 7780) is running...
done
Trying to establish test connection... ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
WHAT is going on...OMG.... . It destroys my server....I installed first the PLESK Panel and then it happened the problem.I removed the plesk and now only this DAMN psa-api-rpc CANT BE removed.

PLEASEEEEE..:(:(:(:(:(
Thanks

ncnbnt
June 10th, 2009, 06:54 PM
anyone pleasssee

dstew
June 10th, 2009, 06:55 PM
Try sudo apt-get remove mysql-server

ncnbnt
June 10th, 2009, 07:20 PM
Same thing.The problem is something in mysql user or something like that.

Thanks anyway

cariboo
June 10th, 2009, 07:32 PM
Try:


sudo apt-get purge mysql-server-5.0

mysql-server is just a meta-package.

ncnbnt
June 10th, 2009, 07:50 PM
Thanks but same damn thing.

It says it will remove them but prints
Trying to start service mysql... done
Trying to establish test connection...Failed

ncnbnt
June 10th, 2009, 08:12 PM
The Problem iS not mysql BUT




Errors were encountered while processing:
psa-api-rpc
E: Sub-process /usr/bin/dpkg returned an error code (1)

mdmarmer
June 10th, 2009, 08:40 PM
The post above is correct

You may need some hints on how to fix the problem

http://sidux.com/index.php?module=pnWikka&tag=FixAPT

I should probably try to find an Ubuntu reference -- if you use the sidux wiki, don't forget to sudo ;-)

Mike

ncnbnt
June 10th, 2009, 08:53 PM
thanks a lot mate but problem still exist..

How to damn delete the user: admin from the database?

woozly
June 10th, 2009, 11:39 PM
Hi,
it looks like mysql will check if you have privs to delete the databases installed on the system.. try to find a proof..

start mysql without any rights

#usr/bin/mysqld_safe --skip-grant-tables
#apt-get remove mysql.....

or ...
try to reset passwd to ''
http://www.debian-administration.org/articles/442

Otherwise you can remove installed files by hand checking. list of installed files from deb pakage....

#dpkg -L mysql-server
#dpkg -L mysql-server-5.0

woo

woozly
June 10th, 2009, 11:42 PM
...

woozly
June 11th, 2009, 12:01 AM
found somewhere .....
try #dpkg-reconfigure mysql-server-5.0

woo

ncnbnt
June 11th, 2009, 09:18 AM
Yihhhaaaaaa..

I dont know how my friends ,but its ok now.


1000000 Thanks:p:p:p:p

FewG
March 21st, 2010, 03:50 PM
I have the same problem, How can I solve it?