How to remove Plesk Billing completely
Hi All,
If you want to remove plesk billing completely or you need to reinstall it because you broke it in some way you can do the following:
Uninstall the rpm by any of your favorite means i.e. rpm -e plesk-billing...... or yum remove plesk-billing etc.
next connect to the database server, in my case by doing the following:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow`
Next you can look for the billing database which is most likely called billing:
mysql> show databases;
mysql> use billing;
then you select some things from a table just to be sure that you have the right db:
mysql> select * from products limit 10;
If you have the right db then:
mysql> use mysql;
replace billing with the database name that you found from above.
mysql> select Host, Db, User from db where Db like "billing";
assuming that the user is called billing and the host is localhost
mysql> drop user 'billing'@'localhost';
Next you'll have to delete the database from mysql:
mysql> drop database billing;
And that should be it.
You can then reinstall plesk-billing if you want to.
HTH
Simon.
Hi All,
If you want to remove plesk billing completely or you need to reinstall it because you broke it in some way you can do the following:
Uninstall the rpm by any of your favorite means i.e. rpm -e plesk-billing...... or yum remove plesk-billing etc.
next connect to the database server, in my case by doing the following:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow`
Next you can look for the billing database which is most likely called billing:
mysql> show databases;
mysql> use billing;
then you select some things from a table just to be sure that you have the right db:
mysql> select * from products limit 10;
If you have the right db then:
mysql> use mysql;
replace billing with the database name that you found from above.
mysql> select Host, Db, User from db where Db like "billing";
assuming that the user is called billing and the host is localhost
mysql> drop user 'billing'@'localhost';
Next you'll have to delete the database from mysql:
mysql> drop database billing;
And that should be it.
You can then reinstall plesk-billing if you want to.
HTH
Simon.